Module: MQTT <--> Powerplug Enegenie
Nevar pievienot vairāk kā 25 tēmas Tēmai ir jāsākas ar burtu vai ciparu, tā var saturēt domu zīmes ('-') un var būt līdz 35 simboliem gara.

Makefile 408B

1234567891011121314
  1. UID=1000
  2. GID=1000
  3. SERVICE_PATH="/etc/systemd/system"
  4. help:
  5. @echo "make install (with root priviliges) - to install service"
  6. @echo "make start (with root priviliges) - to start service"
  7. @echo "make enable (with root priviliges) - to enable service on boot"
  8. install:
  9. python __install__.py $(UID) $(GID) $(SERVICE_PATH)
  10. start:
  11. systemctl start powerplug.service
  12. enable:
  13. systemctl enable powerplug.service