02-01-2021, 08:45 PM
(This post was last modified: 02-02-2021, 07:33 PM by ImmortanJoe.
Edit Reason: adding info.
)
Hi. I'm not a python programmer. But I made a couple of small changes for Linux.
up the top put the following for direct execution. Assuming that's where you can find your python
and this down the bottom. replacing firefox with xdg-open to be a little more generic:
In my case it opens a tab in chromium because it's my default browser.
don't forget to chmod +x checkPinecil.py if you want to run the file directly.
e: Thanks again for posting. I just got the basics of your program running in MicroPython on an eap32. So I now have the basis of a standalone in-stock alert.
up the top put the following for direct execution. Assuming that's where you can find your python
Code:
#!/usr/bin/python3
and this down the bottom. replacing firefox with xdg-open to be a little more generic:
Code:
os.system("xdg-open "+url)
In my case it opens a tab in chromium because it's my default browser.
don't forget to chmod +x checkPinecil.py if you want to run the file directly.
e: Thanks again for posting. I just got the basics of your program running in MicroPython on an eap32. So I now have the basis of a standalone in-stock alert.