Code Monkey home page Code Monkey logo

Comments (11)

Ph-ill avatar Ph-ill commented on July 30, 2024

After viewing the boot output on a monitor I can now confirm there is some issue with the comitup service failing to start.

from tinyticker.

Ph-ill avatar Ph-ill commented on July 30, 2024

Looks like it was a problem with the NetworkManager service running

`sudo systemctl enable NetworkManager.service'

and rebooting solved the issue.

I'm not going to close this because I still have have nothing being outputted to the screen.

from tinyticker.

Ph-ill avatar Ph-ill commented on July 30, 2024

The tinyticker services weren't in the correct folder

running

cd /lib/systemd/system/
sudo wget https://github.com/loiccoyle/tinyticker/raw/main/systemd/tinyticker-qrcode.service
sudo wget https://github.com/loiccoyle/tinyticker/raw/main/systemd/tinyticker-web.service
sudo wget https://github.com/loiccoyle/tinyticker/raw/main/systemd/tinyticker.service
sudo systemctl enable tinyticker-qrcode.service
sudo systemctl enable tinyticker-web.service
sudo systemctl enable tinyticker.service

resolved this, however the services were failing to start so they had to be modified as per the PR i've made here #35

There now seems to be an issue with yfinance not being able to pull the data correctly, updating to the latest version with pip install yfinance==0.2.33

pip install yfinance does not install the most recent version as it prioritizes the version cached in the image.

this did not resolve the issue but is likely required as it includes a number of fixes resolving issues regarding yahoo finance changes on their backend.

I'm recieving

15:15:33 - tinyticker.ticker - DEBUG: Ticker stock GME 16x15m 900 response outdated, skipping.

in the tinyticker logs and seemingly nothing is appearing on the display as a result.

changing skip_outdated: bool = True, to skip_outdated: bool = False, in ticker.py allows data to printed to the screen at least but I'm guessing it's not the most recent data.

from tinyticker.

loiccoyle avatar loiccoyle commented on July 30, 2024

Sorry for not addressing this earlier, I will try to figure it out this week.

changing skip_outdated: bool = True, to skip_outdated: bool = False, in ticker.py allows data to printed to the screen at least but I'm guessing it's not the most recent data.

Were you testing during open hours of the appropriate stock exchange?

EDIT: and thanks for taking the time to debug :)

from tinyticker.

Ph-ill avatar Ph-ill commented on July 30, 2024

No worries at all, I appreciate the response, would still love to get this working and contribute to the project myself as it's by far the most user friendly rpi zero stock ticker.

I was testing with TSLA on the NASDAQ at about 4pm GMT so all my testing should have been within open hours. Interestingly with no change on my part it stopped displaying a chart and started printing code to the screen as shown in the picture below.

IMG-20231218-WA0008

This stumped me at the time so I've not looked back into it since I'll see if I can gather some more info for you tomorrow.

from tinyticker.

loiccoyle avatar loiccoyle commented on July 30, 2024

hmm it looks like it is displaying a partial crash log, would be good to see the full log.

On my end, I spent some time to update the tinyticker image hoping it would solve your issues, but I'm having issues getting anything to display at all on my rpi, even with the waveshare examples... so it is taking me longer than I expected to address this. Will keep trying and keep you posted.

from tinyticker.

loiccoyle avatar loiccoyle commented on July 30, 2024

Ok I got it working again on my end. I updated the image on the drive, https://drive.google.com/drive/folders/1U-PGzkOtSynN6FGDq2MsXF9kXGdkzd0D?usp=share_link can you try it?

from tinyticker.

Ph-ill avatar Ph-ill commented on July 30, 2024

Got it working but it required running

cd /lib/systemd/system/
sudo wget https://github.com/loiccoyle/tinyticker/raw/main/systemd/tinyticker-qrcode.service
sudo wget https://github.com/loiccoyle/tinyticker/raw/main/systemd/tinyticker-web.service
sudo wget https://github.com/loiccoyle/tinyticker/raw/main/systemd/tinyticker.service
sudo systemctl enable tinyticker-qrcode.service
sudo systemctl enable tinyticker-web.service
sudo systemctl enable tinyticker.service

and adding User=tinyticker to the service files and reloading them as mentioned previously, all of the other issues seem to be resolved however!

I need to reset comitup and package up this pi as it was supposed to be a christmas gift for someone but tomorrow I'll take a look at the pi-gen repo and see if I can figure out why the service files aren't ending up in the image.

I appreciate the help.

from tinyticker.

Ph-ill avatar Ph-ill commented on July 30, 2024

Oh I should probably mention that I did also try to enable the service files as the tinyticker user but still ran into the same issue as before, the only thing that's worked is editing the service files and enabling them as root

from tinyticker.

loiccoyle avatar loiccoyle commented on July 30, 2024

and adding User=tinyticker to the service files and reloading them as mentioned previously, all of the other issues seem to be resolved however!

I'm glad the other issues were solved.

tomorrow I'll take a look at the pi-gen repo and see if I can figure out why the service files aren't ending up in the image.

The files are ending up in the image, they are configured as user services and are placed in the /home/tinyticker/.config/systemd/user/ directory.

I think I solved the issue, see loiccoyle/pi-gen@c11bb69 from what I can tell it was caused by the service file not being able to connect the STDOUT of the process to the log file during the ExecStartPre command which was used to create the log dir.

So instead I move the log directory creation to the image building step which is cleaner anyway. I am building the image one last time and will do a final test.

from tinyticker.

loiccoyle avatar loiccoyle commented on July 30, 2024

As far as I can tell it is fixed now. I'll close this, feel free to reopen it if this issue comes up again :)

from tinyticker.

Related Issues (19)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.