Open/closed sign: Difference between revisions

From NURDspace
No edit summary
 
(10 intermediate revisions by 2 users not shown)
Line 16: Line 16:
To make it easier for visitors to see that someone is in.
To make it easier for visitors to see that someone is in.


== How it was made? ==
== How it was made ==


Melan helped me out a lot and provided 99% of the code as i'm a n00b at Python
Melan helped me out a lot and provided 99% of the code as i'm a n00b at Python.
 
Flok messed around with things as well (added a few bugs).


== Code ==
== Code ==


https://github.com/Tahtk3v/Nurdopen
* https://github.com/Tahtk3v/Nurdopen (python code)
 
* https://github.com/NURDspace/NurdOpen-ESP32  (esp32)
 
== Sending a text to it (to use it as a ticker) ==
 
*  mosquitto_pub -h mqtt.vm.nurd.space -t 'doorpixel/scroll' -m 'niet poepen bij de deur'
 
== What/where ==
 
* docker instance on erratic (vm 100)
* /home/nurds/openClosedSign
* start via Portainer (see [[Erratic]], look for "goofy_chatelet" in the list of containers)
* recreate: docker stop openclosesign && docker rm openclosesign && docker build --no-cache . -t openclosesign  && docker run -d --name openclosesign openclosesign:latest
 
== Known issues ==
 
* the ESP32 seems to lose connection with the network after a couple of hours if the space is closed [https://github.com/NURDspace/Nurdopen/issues/7]

Latest revision as of 16:22, 29 October 2022

Open/Closed sign for the space
NoPicture.png
Participants
Skills 1337 Skillz, coding
Status Broken
Niche Infra
Purpose Electronics, fun, world domination
Tool No
Location Zaal 2
Cost IDK Ask Melan
Tool category Electronics

Open/Closed sign for the space Property "Tool Image" (as page type) with input value "File:{{{Picture}}}" contains invalid characters or is incomplete and therefore can cause unexpected results during a query or annotation process. {{{Picture}}} {{#if:No | [[Tool Owner::{{{ProjectParticipants}}} | }} {{#if:No | [[Tool Cost::IDK Ask Melan | }}

A open and Closed sign for our space!

Use case

To make it easier for visitors to see that someone is in.

How it was made

Melan helped me out a lot and provided 99% of the code as i'm a n00b at Python.

Flok messed around with things as well (added a few bugs).

Code

Sending a text to it (to use it as a ticker)

  • mosquitto_pub -h mqtt.vm.nurd.space -t 'doorpixel/scroll' -m 'niet poepen bij de deur'

What/where

  • docker instance on erratic (vm 100)
  • /home/nurds/openClosedSign
  • start via Portainer (see Erratic, look for "goofy_chatelet" in the list of containers)
  • recreate: docker stop openclosesign && docker rm openclosesign && docker build --no-cache . -t openclosesign && docker run -d --name openclosesign openclosesign:latest

Known issues

  • the ESP32 seems to lose connection with the network after a couple of hours if the space is closed [1]