Comments (5)
I've done startup code by systemd service.
You need to do below steps:
- create a file
picoReflow.service
in/etc/sysemd/system
by command$ sudo nano picoReflow.service
if your username is pi
and picoReflow is installed in location /home/pi/picoReflow
you don't need to make any changes in code below.
put in file code:
[Unit]
#Human redable name of the unit
Description=picoReflow Service
[Service]
#Command to execute when the service is started
ExecStart=/usr/bin/python /home/pi/picoReflow/picoreflowd.py
[install]
WantedBy=default.target
$ sudo chown root:root picoReflow.service
$ sudo chmod 664 picoReflow.service
$ sudo systemctl enable /etc/systemd/system/picoReflow.service
sudo systemctl daemon-reload
- test if script is working by typing
$ sudo systemctl | grep picoReflow.service
You should get answer:
$ picoreflow.service loaded active running picoReflow Service
after reebot script should start automaticaly.
Tested on RPI zero
from picoreflow.
I suppose Raspbian is using systemd now, so the provided init script wont help much. I've looked thru the forks and so far it seems no one has provided a systemd unit file :) I could write one blind but without the ability to test it wont make much sense and is likely not to work properly the first time.
Have a look at https://github.com/torfsen/python-systemd-tutorial
it shouldnt be too hard, and if it works for you, please send a PR or comment your unit file here and I'll add it into the lib/init folder.
from picoreflow.
<3 - thx for sharing
from picoreflow.
Related Issues (19)
- Profile Marker Bug after leaving edit mode without saving HOT 1
- Simulation mode stops after 5sec in run HOT 2
- Empty Profile list HOT 1
- long run stability issues HOT 3
- Can't Find The Origin For Units HOT 11
- picoreflowd doesn't handle MAX31855 read errors gracefully HOT 1
- error raised by MAX31855.py after a few seconds of temperature increase HOT 2
- All profiles run for 10 sec then flag Run over HOT 3
- not reading Temp
- Using Max6675 instead of Max31855 HOT 2
- Calibrate the controller temperature measurements.
- Fresh Install Failed - failed with error code 1 in None HOT 13
- Is this for the raspberry pi pico, or the mini computers? HOT 1
- Status Websocket not available HOT 6
- Changing the Time scale HOT 12
- websocket doesn't work/connect. HOT 14
- Graph not performing as expected HOT 2
- Wrong Measurement with Max31855 HOT 6
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from picoreflow.