Go to advanced search

by Zizico2
Fri Nov 23, 2018 1:59 am
Forum: General discussion
Topic: Do HifiBerry products work with piCore?
Replies: 1
Views: 457

Do HifiBerry products work with piCore?

Do HifiBerry products work with piCore?
by Zizico2
Wed Nov 21, 2018 11:03 am
Forum: General discussion
Topic: Solved: Run Pythom Script as a daemon
Replies: 4
Views: 508

Re: Run Pythom Script as a daemon

PhatFil wrote:
Wed Nov 21, 2018 6:08 am
yes you will need an endless loop to encapsulate the monitoring code
Noob Python question: will event triggered functions get triggered during time.sleep()?
by Zizico2
Wed Nov 21, 2018 5:44 am
Forum: General discussion
Topic: Solved: Run Pythom Script as a daemon
Replies: 4
Views: 508

Re: Run Pythom Script as a daemon

PhatFil wrote:
Wed Nov 21, 2018 4:22 am
afaik there are 2 prefered methods you could use (google)
1) systemd https://www.raspberrypi.org/documentati ... systemd.md
and
2) rc.local https://www.raspberrypi.org/documentati ... c-local.md
Will this work without a loop at the end? Won't the script just end?
by Zizico2
Wed Nov 21, 2018 4:01 am
Forum: General discussion
Topic: Solved: Run Pythom Script as a daemon
Replies: 4
Views: 508

Solved: Run Pythom Script as a daemon

Hi guys I've got a script that defines some event triggered functions. I would like it to always be running in the background. I'm thinking of putting an infinite loop (While(True): Pass) at the end and running it on startup (running it on bootlocal.sh). Will this work? And is there any better way? ...
by Zizico2
Wed Nov 21, 2018 12:55 am
Forum: General discussion
Topic: Solved: GPIO Zero on PiCore
Replies: 4
Views: 828

Re: GPIO Zero on PiCore

Micropython works fine, been using it for years on PiCore. There is some old micropython bit banging result posted on the forum. They may need testing on release 10.? http://tinycorelinux.net/10.x/ Try the PiCore forum for help, the guys there are pretty active. Get PiCore working on a B+ first the...
by Zizico2
Tue Nov 20, 2018 10:56 pm
Forum: General discussion
Topic: Solved: GPIO Zero on PiCore
Replies: 4
Views: 828

Solved: GPIO Zero on PiCore

Hi guys. Since PiCore ships with MicroPython, will GPIO Zero work out of the box? (after installed, so not quite out of the box but you get it xd)
by Zizico2
Tue Nov 20, 2018 10:48 pm
Forum: General discussion
Topic: Solved: Pull the plug
Replies: 17
Views: 1904

Re: Pull the plug

Doable? Yes. Easy? Not so much. The best way to handle that scenario is to get a UPS designed for the Pi. The big problem here is that most people think "Batteries...Li Ion/LiPo." The problem with that is that very few commercial battery packs permit charging while in use (charging Lithium batterie...
by Zizico2
Mon Nov 19, 2018 6:24 am
Forum: General discussion
Topic: Solved: Pull the plug
Replies: 17
Views: 1904

Re: Pull the plug

And an idea I just had was to include a battery that charges while the whole thing is plugged in. And when the device would get unplugged It would trigger a gpio pin and run the shutdown command, with the battery powering the Pi. Do you think it is doable? Doable? Yes. Easy? Not so much. The best w...
by Zizico2
Mon Nov 19, 2018 6:17 am
Forum: General discussion
Topic: Solved: Pull the plug
Replies: 17
Views: 1904

Re: Pull the plug

And an idea I just had was to include a battery that charges while the whole thing is plugged in. And when the device would get unplugged It would trigger a gpio pin and run the shutdown command, with the battery powering the Pi. Do you think it is doable? Doable? Yes. Easy? Not so much. The best w...
by Zizico2
Mon Nov 19, 2018 5:00 am
Forum: General discussion
Topic: Solved: Pull the plug
Replies: 17
Views: 1904

Re: Pull the plug

The above statements are true for Raspbian, but there are other options (like Tiny Core Linux, which is an OS that runs entirely from RAM). Persistence is the main issue. If you don't need to save data between boots, then something like Tiny Core could allow powering off at any time. If you DO need...
by Zizico2
Sun Nov 18, 2018 11:20 pm
Forum: General discussion
Topic: Solved: Pull the plug
Replies: 17
Views: 1904

Solved: Pull the plug

Hi mates! According to the oficial FAQ O shouldn't just unplug the pi from the wall as it might corrupt the SD Card. If I use any other media to boot the OS (SSD,hdd,usb thumb drive), will I get the same problem? If so is there any workaround? I've thought of using a button to shutdown the pi (throu...

Go to advanced search