Closed MJB1113 closed 3 years ago
how about you post the contents of the dotenv file? dotenv not dotenv-example!
how about you post the contents of the dotenv file? dotenv not dotenv-example!
dotenv
(without backticks)########################################################################################################
ASCII_BANNER= ASCII_COLOR= AUTO_ADD_TO_CART=true BROWSER_TRUSTED= COUNTRY=USA DESKTOP_NOTIFICATIONS=true DISCORD_NOTIFY_GROUP= DISCORD_NOTIFY_GROUP_3060TI=true DISCORD_NOTIFY_GROUP_3070=true DISCORD_NOTIFY_GROUP_3080=true DISCORD_NOTIFY_GROUP_3090=true DISCORD_NOTIFY_GROUP_CORSAIR_SF= DISCORD_NOTIFY_GROUP_RX6800= DISCORD_NOTIFY_GROUP_RX6800XT= DISCORD_NOTIFY_GROUP_RX6900XT= DISCORD_NOTIFY_GROUP_RYZEN5600= DISCORD_NOTIFY_GROUP_RYZEN5800= DISCORD_NOTIFY_GROUP_RYZEN5900= DISCORD_NOTIFY_GROUP_RYZEN5950= DISCORD_NOTIFY_GROUP_SONYPS5C= DISCORD_NOTIFY_GROUP_SONYPS5DE= DISCORD_NOTIFY_GROUP_XBOXSX= DISCORD_NOTIFY_GROUP_XBOXSS= DISCORD_NOTIFY_GROUP_TEST= DISCORD_WEB_HOOK=https://discord.com/api/webhooks/794820191489228821/4f5toLJBdHc6YfTPN65fMa1cPDLByG9ozqNSiqfg5B3GHcTgX-i9F9Y1iWsG6WmsiDVw EMAIL_PASSWORD= EMAIL_TO= EMAIL_USERNAME= HEADLESS= IN_STOCK_WAIT_TIME= 600 LOG_LEVEL= LOW_BANDWIDTH= MAX_PRICE_SERIES_3060TI=650 MAX_PRICE_SERIES_3070=750 MAX_PRICE_SERIES_3080=850 MAX_PRICE_SERIES_3090=1800 MAX_PRICE_SERIES_CORSAIR_SF= MAX_PRICE_SERIES_RX6800= MAX_PRICE_SERIES_RX6800XT= MAX_PRICE_SERIES_RX6900XT= MAX_PRICE_SERIES_RYZEN5600= MAX_PRICE_SERIES_RYZEN5800= MAX_PRICE_SERIES_RYZEN5900= MAX_PRICE_SERIES_RYZEN5950= MAX_PRICE_SERIES_SONYPS5C= MAX_PRICE_SERIES_SONYPS5DE= MAX_PRICE_SERIES_XBOXSS= MAX_PRICE_SERIES_XBOXSX= MAX_PRICE_SERIES_TEST= MICROCENTER_LOCATION= MQTT_BROKER_ADDRESS= MQTT_BROKER_PORT= MQTT_CLIENT_ID= MQTT_PASSWORD= MQTT_QOS= MQTT_TOPIC= MQTT_USERNAME= NVIDIA_ADD_TO_CART_ATTEMPTS=150 NVIDIA_SESSION_TTL=60 OPEN_BROWSER=true PAGE_BACKOFF_MIN= PAGE_BACKOFF_MAX= PAGE_SLEEP_MIN= PAGE_SLEEP_MAX= PAGE_TIMEOUT= PAGERDUTY_INTEGRATION_KEY= PAGERDUTY_SEVERITY= PHILIPS_HUE_API_KEY= PHILIPS_HUE_CLOUD_ACCESS_TOKEN= PHILIPS_HUE_CLOUD_CLIENT_ID= PHILIPS_HUE_CLOUD_CLIENT_SECRET= PHILIPS_HUE_CLOUD_REFRESH_TOKEN= PHILIPS_HUE_LAN_BRIDGE_IP= PHILIPS_HUE_LIGHT_COLOR= PHILIPS_HUE_LIGHT_IDS= PHILIPS_HUE_LIGHT_PATTERN= PHONE_CARRIER=tmobile PHONE_NUMBER= PLAY_SOUND= PROXY_ADDRESS= PROXY_PROTOCOL= PROXY_PORT= PUSHBULLET= PUSHOVER_EXPIRE= PUSHOVER_RETRY= PUSHOVER_TOKEN= PUSHOVER_USER= PUSHOVER_PRIORITY= SCREENSHOT=true SHOW_ONLY_BRANDS= SHOW_ONLY_MODELS= SHOW_ONLY_SERIES= SLACK_CHANNEL= SLACK_TOKEN= SMTP_ADDRESS= SMTP_PORT= STORES=amazon,amd,adorama,antonline,bestbuy,asus,bandh,corsair,evga,gamestop,newegg,nvidia,officedepot TELEGRAM_ACCESS_TOKEN= TELEGRAM_CHAT_ID= TWILIO_ACCOUNT_SID= TWILIO_AUTH_TOKEN= TWILIO_FROM_NUMBER= TWILIO_TO_NUMBER= TWITCH_ACCESS_TOKEN= TWITCH_CHANNEL= TWITCH_CLIENT_ID= TWITCH_CLIENT_SECRET= TWITCH_REFRESH_TOKEN= TWITTER_ACCESS_TOKEN_KEY= TWITTER_ACCESS_TOKEN_SECRET= TWITTER_CONSUMER_KEY= TWITTER_CONSUMER_SECRET= TWITTER_TWEET_TAGS= WEB_PORT=
I believe the issue here is you did not surround the store list in quotes. It should be something like the following: STORES="amazon,amd,adorama,antonline,bestbuy,asus,bandh,corsair,evga,gamestop,newegg,nvidia,officedepot"
I believe the issue here is you did not surround the store list in quotes. It should be something like the following:
STORES="amazon,amd,adorama,antonline,bestbuy,asus,bandh,corsair,evga,gamestop,newegg,nvidia,officedepot"
this didn't work :(
Interesting, can you repost your updated dotenv file?
Interesting, can you repost your updated dotenv file? All configuration variables are optional Copy this file and name it as dotenv (without backticks) Read https://jef.codes/streetmerchant/getting-started/#customization for help on customizing this file ########################################################################################################
ASCII_BANNER= ASCII_COLOR= AUTO_ADD_TO_CART=true BROWSER_TRUSTED= COUNTRY=USA DESKTOP_NOTIFICATIONS=true DISCORD_NOTIFY_GROUP= DISCORD_NOTIFY_GROUP_3060TI=true DISCORD_NOTIFY_GROUP_3070=true DISCORD_NOTIFY_GROUP_3080=true DISCORD_NOTIFY_GROUP_3090=true DISCORD_NOTIFY_GROUP_CORSAIR_SF= DISCORD_NOTIFY_GROUP_RX6800= DISCORD_NOTIFY_GROUP_RX6800XT= DISCORD_NOTIFY_GROUP_RX6900XT= DISCORD_NOTIFY_GROUP_RYZEN5600= DISCORD_NOTIFY_GROUP_RYZEN5800= DISCORD_NOTIFY_GROUP_RYZEN5900= DISCORD_NOTIFY_GROUP_RYZEN5950= DISCORD_NOTIFY_GROUP_SONYPS5C= DISCORD_NOTIFY_GROUP_SONYPS5DE= DISCORD_NOTIFY_GROUP_XBOXSX= DISCORD_NOTIFY_GROUP_XBOXSS= DISCORD_NOTIFY_GROUP_TEST= DISCORD_WEB_HOOK=https://discord.com/api/webhooks/794820191489228821/4f5toLJBdHc6YfTPN65fMa1cPDLByG9ozqNSiqfg5B3GHcTgX-i9F9Y1iWsG6WmsiDVw EMAIL_PASSWORD= EMAIL_TO= EMAIL_USERNAME= HEADLESS= IN_STOCK_WAIT_TIME= 600 LOG_LEVEL= LOW_BANDWIDTH= MAX_PRICE_SERIES_3060TI=650 MAX_PRICE_SERIES_3070=750 MAX_PRICE_SERIES_3080=850 MAX_PRICE_SERIES_3090=1800 MAX_PRICE_SERIES_CORSAIR_SF= MAX_PRICE_SERIES_RX6800= MAX_PRICE_SERIES_RX6800XT= MAX_PRICE_SERIES_RX6900XT= MAX_PRICE_SERIES_RYZEN5600= MAX_PRICE_SERIES_RYZEN5800= MAX_PRICE_SERIES_RYZEN5900= MAX_PRICE_SERIES_RYZEN5950= MAX_PRICE_SERIES_SONYPS5C= MAX_PRICE_SERIES_SONYPS5DE= MAX_PRICE_SERIES_XBOXSS= MAX_PRICE_SERIES_XBOXSX= MAX_PRICE_SERIES_TEST= MICROCENTER_LOCATION= MQTT_BROKER_ADDRESS= MQTT_BROKER_PORT= MQTT_CLIENT_ID= MQTT_PASSWORD= MQTT_QOS= MQTT_TOPIC= MQTT_USERNAME= NVIDIA_ADD_TO_CART_ATTEMPTS=150 NVIDIA_SESSION_TTL=60 OPEN_BROWSER=true PAGE_BACKOFF_MIN= PAGE_BACKOFF_MAX= PAGE_SLEEP_MIN= PAGE_SLEEP_MAX= PAGE_TIMEOUT= PAGERDUTY_INTEGRATION_KEY= PAGERDUTY_SEVERITY= PHILIPS_HUE_API_KEY= PHILIPS_HUE_CLOUD_ACCESS_TOKEN= PHILIPS_HUE_CLOUD_CLIENT_ID= PHILIPS_HUE_CLOUD_CLIENT_SECRET= PHILIPS_HUE_CLOUD_REFRESH_TOKEN= PHILIPS_HUE_LAN_BRIDGE_IP= PHILIPS_HUE_LIGHT_COLOR= PHILIPS_HUE_LIGHT_IDS= PHILIPS_HUE_LIGHT_PATTERN= PHONE_CARRIER=tmobile PHONE_NUMBER= PLAY_SOUND= PROXY_ADDRESS= PROXY_PROTOCOL= PROXY_PORT= PUSHBULLET= PUSHOVER_EXPIRE= PUSHOVER_RETRY= PUSHOVER_TOKEN= PUSHOVER_USER= PUSHOVER_PRIORITY= SCREENSHOT=true SHOW_ONLY_BRANDS= SHOW_ONLY_MODELS= SHOW_ONLY_SERIES= SLACK_CHANNEL= SLACK_TOKEN= SMTP_ADDRESS= SMTP_PORT= STORES="amazon,amd,adorama,antonline,bestbuy,asus,bandh,corsair,evga,gamestop,newegg,nvidia,officedepot" TELEGRAM_ACCESS_TOKEN= TELEGRAM_CHAT_ID= TWILIO_ACCOUNT_SID= TWILIO_AUTH_TOKEN= TWILIO_FROM_NUMBER= TWILIO_TO_NUMBER= TWITCH_ACCESS_TOKEN= TWITCH_CHANNEL= TWITCH_CLIENT_ID= TWITCH_CLIENT_SECRET= TWITCH_REFRESH_TOKEN= TWITTER_ACCESS_TOKEN_KEY= TWITTER_ACCESS_TOKEN_SECRET= TWITTER_CONSUMER_KEY= TWITTER_CONSUMER_SECRET= TWITTER_TWEET_TAGS= WEB_PORT=
Interesting, unfortunately I'm not able to replicate this issue on my machine (I don't have access to a windows development machine though). The above configuration does work as expected on ubuntu server 20.04 and macos 10.15.6.
Hopefully someone else can figure out the issue, I have an inkling that it might be a path issue but I don't have enough knowledge about this project to give more information
@jef
How about changing the dotenv just to STORES=amazon to test. Then go from there.
How about changing the dotenv just to STORES=amazon to test. Then go from there.
hmm its quite strange, regardless of what I set the stores to it still shows that it searches amazon and bestbuy.
@jef do you have any idea of how I can fix this?
I had the same issue on Windows as well. This seems to have something to do with how Windows saves the file. When it's saved as "All Files" via Notepad or some other text editors, the file is still saved as a Text Document for whatever reason, and that Text Document isn't read by the program properly. The fix I found was to copy the file exactly and never use "Save as", only using the regular "Save" to make the changes you need
I had the same issue on Windows as well. This seems to have something to do with how Windows saves the file. When it's saved as "All Files" via Notepad or some other text editors, the file is still saved as a Text Document for whatever reason, and that Text Document isn't read by the program properly. The fix I found was to copy the file exactly and never use "Save as", only using the regular "Save" to make the changes you need
Im not exactly sure what you mean here. Can you elaborate?
Check the dotenv file in your File Explorer. Does the type of the file say "File" or "Text Document"? If it says "Text Document", that seems to break the program, it has to stay of type "File"
Check the dotenv file in your File Explorer. Does the type of the file say "File" or "Text Document"? If it says "Text Document", that seems to break the program, it has to stay of type "File"
my dotenv file says "env file" on the right side
I do get these errors though
Those warnings are expected. Everything looks fine there.
hmm its quite strange, regardless of what I set the stores to it still shows that it searches amazon and bestbuy.
This tells me your environment file is incorrect. Can you take a screenshot of your explorer (where streetmerchant and the dotenv file is at)?
Check the dotenv file in your File Explorer. Does the type of the file say "File" or "Text Document"? If it says "Text Document", that seems to break the program, it has to stay of type "File"
my dotenv file says "env file" on the right side
Remove the .env file extension so that it of the generic type "file" and not of type "env".
I have the same issue, I've done all the steps above, and still doesn't work, my dotenv-example is a File, not text. I did a regular "save" and not save as, and still nothing. I removed bestbuy as a test, and it still showed it in the startup.
The other streetmerchant file doesn't work just so you know The weird thing is, a 6800 for 1300$ or something was on amazon, the auto add to cart changed with it, but the price limit nor the stores changed. Another edit: I also removed the .txt dotenv that appeared for some reason, but otherwise, I don't know why this is happening Edit: FINALLY, I solved it @MJB1113 . So, you go to the c:\ version of the streetmerchant and switch out the example for the one you just made, follow everything you did before, and that should fix it.
Expected Behavior
There should be 13 stores that are being searched
Current Behavior
I have more than two stores selected however only those are showing up (in the picture below)
Steps to Reproduce
Environment
OS: dotenv file:
Logs
I just updated my local copy of the code and I am exhibiting the same issue. I thought it was some file that got corrupted as it was working until this morning. I tried to troubleshoot but didn't get anywhere.
I deleted the local copy and cloned it again, and configured the dotenv, but still had the same issue. No matter what I do it is no longer working.
Here is my dotenv file (removed sensitive data)
ASCII_BANNER= ASCII_COLOR= AUTO_ADD_TO_CART=true BROWSER_TRUSTED= COUNTRY= DESKTOP_NOTIFICATIONS=true DISCORD_NOTIFY_GROUP= DISCORD_NOTIFY_GROUP_3060TI= DISCORD_NOTIFY_GROUP_3070= DISCORD_NOTIFY_GROUP_3080= DISCORD_NOTIFY_GROUP_3090= DISCORD_NOTIFY_GROUP_CORSAIR_SF= DISCORD_NOTIFY_GROUP_RX6800= DISCORD_NOTIFY_GROUP_RX6800XT= DISCORD_NOTIFY_GROUP_RX6900XT= DISCORD_NOTIFY_GROUP_RYZEN5600= DISCORD_NOTIFY_GROUP_RYZEN5800= DISCORD_NOTIFY_GROUP_RYZEN5900= DISCORD_NOTIFY_GROUP_RYZEN5950= DISCORD_NOTIFY_GROUP_SONYPS5C= DISCORD_NOTIFY_GROUP_SONYPS5DE= DISCORD_NOTIFY_GROUP_XBOXSX= DISCORD_NOTIFY_GROUP_XBOXSS= DISCORD_NOTIFY_GROUP_TEST= DISCORD_WEB_HOOK= EMAIL_PASSWORD="(removed)" EMAIL_TO="(removed)@gmail.com" EMAIL_USERNAME="(removed)@gmail.com" HEADLESS= IN_STOCK_WAIT_TIME= LOG_LEVEL= LOW_BANDWIDTH= MAX_PRICE_SERIES_3060TI= MAX_PRICE_SERIES_3070= MAX_PRICE_SERIES_3080="935" MAX_PRICE_SERIES_3090= MAX_PRICE_SERIES_CORSAIR_SF= MAX_PRICE_SERIES_RX6800= MAX_PRICE_SERIES_RX6800XT="850" MAX_PRICE_SERIES_RX6900XT= MAX_PRICE_SERIES_RYZEN5600= MAX_PRICE_SERIES_RYZEN5800= MAX_PRICE_SERIES_RYZEN5900= MAX_PRICE_SERIES_RYZEN5950= MAX_PRICE_SERIES_SONYPS5C= MAX_PRICE_SERIES_SONYPS5DE= MAX_PRICE_SERIES_XBOXSS= MAX_PRICE_SERIES_XBOXSX= MAX_PRICE_SERIES_TEST= MICROCENTER_LOCATION="mayfield-heights" MQTT_BROKER_ADDRESS= MQTT_BROKER_PORT= MQTT_CLIENT_ID= MQTT_PASSWORD= MQTT_QOS= MQTT_TOPIC= MQTT_USERNAME= NVIDIA_ADD_TO_CART_ATTEMPTS= NVIDIA_SESSION_TTL= OPEN_BROWSER= PAGE_BACKOFF_MIN= PAGE_BACKOFF_MAX= PAGE_SLEEP_MIN="2000" PAGE_SLEEP_MAX="30000" PAGE_TIMEOUT="0" PAGERDUTY_INTEGRATION_KEY= PAGERDUTY_SEVERITY= PHILIPS_HUE_API_KEY= PHILIPS_HUE_CLOUD_ACCESS_TOKEN= PHILIPS_HUE_CLOUD_CLIENT_ID= PHILIPS_HUE_CLOUD_CLIENT_SECRET= PHILIPS_HUE_CLOUD_REFRESH_TOKEN= PHILIPS_HUE_LAN_BRIDGE_IP= PHILIPS_HUE_LIGHT_COLOR= PHILIPS_HUE_LIGHT_IDS= PHILIPS_HUE_LIGHT_PATTERN= PHONE_CARRIER="verizon" PHONE_NUMBER="removed" PLAY_SOUND="game.mp3" PROXY_ADDRESS= PROXY_PROTOCOL= PROXY_PORT= PUSHBULLET= PUSHOVER_EXPIRE= PUSHOVER_RETRY= PUSHOVER_TOKEN= PUSHOVER_USER= PUSHOVER_PRIORITY= SCREENSHOT= SHOW_ONLY_BRANDS="sapphire,gigabyte,asus" SHOW_ONLY_MODELS="nitro+,gaming oc,strix oc" SHOW_ONLY_SERIES="rx6800xt,3080" SLACK_CHANNEL= SLACK_TOKEN= SMTP_ADDRESS=smtp.gmail.com SMTP_PORT=465 STORES="asus,amazon,bandh,bestbuy,microcenter,newegg,target,walmart" TELEGRAM_ACCESS_TOKEN=(removed) TELEGRAM_CHAT_ID=(removed) TWILIO_ACCOUNT_SID= TWILIO_AUTH_TOKEN= TWILIO_FROM_NUMBER= TWILIO_TO_NUMBER= TWITCH_ACCESS_TOKEN= TWITCH_CHANNEL= TWITCH_CLIENT_ID= TWITCH_CLIENT_SECRET= TWITCH_REFRESH_TOKEN= TWITTER_ACCESS_TOKEN_KEY= TWITTER_ACCESS_TOKEN_SECRET= TWITTER_CONSUMER_KEY= TWITTER_CONSUMER_SECRET= TWITTER_TWEET_TAGS= WEB_PORT=
Expected Behavior
There should be 13 stores that are being searched
Current Behavior
I have more than two stores selected however only those are showing up (in the picture below)
Steps to Reproduce
Environment
OS: dotenv file:
Logs