Automate checking whether the Pinecil is still in stock
#3
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
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.
  Reply


Messages In This Thread
RE: Automate checking whether the Pinecil is still in stock - by ImmortanJoe - 02-01-2021, 08:45 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
  Pinecil V2 doesn’t power on under any circumstances BigCarrotLeaf 1 2,207 03-28-2026, 02:37 AM
Last Post: Juptin
  Pinecil v2: Use car battery for power? FZB 0 404 03-02-2026, 09:56 AM
Last Post: FZB
  Is Vector3d.shop a legitimate pinecil reseller? jamespo 0 823 12-03-2025, 07:40 AM
Last Post: jamespo
  Minimum temperature Pinecil pschalkwijk 1 1,021 10-16-2025, 10:40 PM
Last Post: tllim
  Pinecil v2 not reaching 20v … Escape75 0 4,272 09-23-2025, 09:25 PM
Last Post: Escape75
  Pinecil v2 tip screw temperature Minuen 0 9,001 06-23-2025, 06:38 AM
Last Post: Minuen
  Crippling noise from inside pinecil during a few minutes high power soldering. dreieck 3 4,972 05-15-2025, 10:41 AM
Last Post: dreieck
  Pinecil v2 issue autumnharris 0 1,322 05-15-2025, 01:35 AM
Last Post: autumnharris
  Pinecil constantly cutting out WroughtIron 1 2,945 01-16-2025, 02:20 AM
Last Post: D4veC4rter
Exclamation Pinecil is working with 5v but nothing else!! MizterPink 1 2,061 01-07-2025, 03:59 PM
Last Post: MizterPink

Forum Jump:


Users browsing this thread: 2 Guest(s)