Space status: Difference between revisions

From NURDspace
mNo edit summary
 
(38 intermediate revisions by 7 users not shown)
Line 1: Line 1:
{{Project
{{Project
|ProjectSkills=coding
|Name=Space status
|ProjectStatus=Active
|Skills=coding, Micro-electronics
|ProjectNiche=Software
|Status=Production
|ProjectPurpose=Infrastructure
|Niche=Software
|ProjectParticipants=niz buZz? you?
|Purpose=Infrastructure
|Picture=20170427_223424.jpg
|Tool=No
}}
}}
[[Image:Spacebot hw.jpg|350px|right]]
Goal: (semi)automatic updates when space opens and closes.
Goal: (semi)automatic updates when space opens and closes.
== How ==
switch (spacenanny) -> mqtt (space/status_switch inverted logic False is open True is closed) -> hass ([[Jarvis]]) -> space api php script on nurdservices (https://github.com/NURDspace/space-api-generator)


== Media ==
== Media ==
* IRC (topic?)
* IRC -> done
* Twitter? -> http://twitter4j.org/en/index.html <- It would be sw33t to auto-spam twitter with activity in our space.
* Twitter -> http://twitter4j.org/en/index.html <- It would be sw33t to auto-spam twitter with activity in our space -> done
* Wiki?
* Space API JSON: -> done -> https://space.nurdspace.nl/spaceapi/status.json
* ...
** https://github.com/NURDspace/space-api-generator on nurdservices
* Wiki -> shows status on frontpage
* <s>'Wall': have the start page of our site display all sorts of live info and put the wiki behind a link.</s> See above, we use a widget on the wiki to show this stuff
* Facebook: has been linked to the Twitter feed (yech)


== Trigger ==
== Trigger ==
* Nice big red button?
* Giant switch next to the door
* Motion detection @ cam?
* Detection @ lock?
* ...


== Update 10 april 2012 ==
== Stuff dependent on space status ==
Since we have internet, we can now have updates! First step is the iBook G4 that runs a small Java IRC bot that can be controlled from the console by typing 'o' or 'c' (for 'open' and 'close'). It then updates the space status in the #nurds topic. Next step is a GUI (Swing).
* See [[Jarvis]]


== Update 12 april 2012 ==
== Previous incarnation ==
https://github.com/bjornlammers/nurdspace/tree/master/spacebot-arduino
<gallery>
image:Spacebot hw.jpg|old hardware pcb (broken now)
image:Spacebot-circuit.jpg|drawing of the circuit
</gallery>
== Log ==
=== 10 april 2012 ===
Since we have internet, we can now have updates! First step is the iBook G4 that runs a small Java IRC bot that can be controlled from the console by typing 'o' or 'c' (for 'open' and 'close'). It then updates the space status in the #nurds topic. <s>Next step is a GUI (Swing).</s>
 
=== 12 april 2012 ===
An LDR has been connected to the half-broken Arduino and the iBook has been freed of its duties. buZz installed Java on the Dockstar and the software runs there now. The Arduino has been connected and everything works. We also proved that the bot can send DMX commands, currently fading in the only lamp connected as the space opens and fading it out as it closes.
An LDR has been connected to the half-broken Arduino and the iBook has been freed of its duties. buZz installed Java on the Dockstar and the software runs there now. The Arduino has been connected and everything works. We also proved that the bot can send DMX commands, currently fading in the only lamp connected as the space opens and fading it out as it closes.


== Update 18 april 2012 ==
=== 18 april 2012 ===
DS18B20 has been connected! You can now query the lights status, temperature or a summary using !lights, !temp and !status.
DS18B20 has been connected! You can now query the lights status, temperature or a summary using !lights, !temp and !status.


== Update 19 april 2012 ==
=== 19 april 2012 ===
DS18B20 no longer functioning :( stopped working when soldering everything to a board. LDR gives wrong readings. Unfortunately, we can't seem to find out what's wrong...
DS18B20 no longer functioning :( stopped working when soldering everything to a board. LDR gives wrong readings. Unfortunately, we can't seem to find out what's wrong...


== Update 23 april 2012 ==
=== 23 april 2012 ===
Faulty soldering of the 100 kOhm pull-down resistor for the LDR was at least partly to blame. LDR works correctly again and SpaceBot has been restarted. DS18B20 has been removed for now.
Faulty soldering of the 100 kOhm pull-down resistor for the LDR was at least partly to blame. LDR works correctly again and [[SpaceBot]] has been restarted. DS18B20 has been removed for now.


== Update 25 april 2012 ==
=== 25 april 2012 ===
Everything has been resoldered and a spare DS18B20 is used now. Everything seems to work again.
Everything has been resoldered and a spare DS18B20 is used now. Everything seems to work again.


== Sources ==
=== 29 april 2012 ===
All Arduino sources have been checked in to the Subversion repository 'nurdspace' under /spacebot/arduino
Complete redesign of sources, which makes it easier to integrate new media. Twitter updater added. Space API JSON added.
 
=== 30 april 2012 ===
Added temperature to the Space API JSON.


The source for the Java SpaceBot IRC bot that uses the Arduino messages has been checked in under /spacebot/java/spacebot_old
=== october 2012 ===
Status is now controlled by the locks.


== Further steps ==
=== august 2013 ===
Further steps may include:
Everything will have to be redone now that we've moved to a [[Location|new location]].
* <s>connect an Arduino to the iBook and access it using a Java API (you'll need http://silveiraneto.net/2009/03/01/arduino-and-java/ );</s>
* <s>connect a Big Red Button to the Arduino to control space status;</s> automatic > manual
* <s>LDR close to the fluorescent lighting connected to the Arduino;</s>
* detection inside the lock connected to the Arduino;
* complete redesign of code, it's messy as hell now;
* <s>redesign of hardware, it's messy as hell now;</s>


Do we need more media? buZz mentioned something about a JSON on a public HTTP... probably this: https://hackerspaces.nl/spaceapi/
=== october 2017 ===
So I will need:
current status ; switch -> [[spacenanny]] -> [[Vinculum]] -> status -> nfsmount naar [[NURDServices]] -> json file -> website -> [[Nurdbot]]
* a logo;
* icons for 'open' and 'closed'
Someone care to draw some stuff?


* separate lamp to announce space status (connected to the dimmer);
=== Sep 2020 ===
* <s>incorporating the temperature sensor (currently on the Teensy) on the Arduino;</s>
Remove the status vm and made everything rotate around hass
* <s>fix and/or replace DS18B20</s>
switched to https://github.com/NURDspace/space-api-generator running on nurdservices
* <s>fix LDR</s>

Latest revision as of 21:40, 21 September 2020

Space status
20170427 223424.jpg
Participants Bjornl, User:buzz
Skills coding, Micro-electronics
Status Production
Niche Software
Purpose Infrastructure
Tool No
Location
Cost
Tool category

Space status

20170427_223424.jpg {{#if:No | [[Tool Owner::{{{ProjectParticipants}}} | }} {{#if:No | [[Tool Cost::{{{Cost}}} | }}

Goal: (semi)automatic updates when space opens and closes.

How

switch (spacenanny) -> mqtt (space/status_switch inverted logic False is open True is closed) -> hass (Jarvis) -> space api php script on nurdservices (https://github.com/NURDspace/space-api-generator)

Media

Trigger

  • Giant switch next to the door

Stuff dependent on space status

Previous incarnation

https://github.com/bjornlammers/nurdspace/tree/master/spacebot-arduino

Log

10 april 2012

Since we have internet, we can now have updates! First step is the iBook G4 that runs a small Java IRC bot that can be controlled from the console by typing 'o' or 'c' (for 'open' and 'close'). It then updates the space status in the #nurds topic. Next step is a GUI (Swing).

12 april 2012

An LDR has been connected to the half-broken Arduino and the iBook has been freed of its duties. buZz installed Java on the Dockstar and the software runs there now. The Arduino has been connected and everything works. We also proved that the bot can send DMX commands, currently fading in the only lamp connected as the space opens and fading it out as it closes.

18 april 2012

DS18B20 has been connected! You can now query the lights status, temperature or a summary using !lights, !temp and !status.

19 april 2012

DS18B20 no longer functioning :( stopped working when soldering everything to a board. LDR gives wrong readings. Unfortunately, we can't seem to find out what's wrong...

23 april 2012

Faulty soldering of the 100 kOhm pull-down resistor for the LDR was at least partly to blame. LDR works correctly again and SpaceBot has been restarted. DS18B20 has been removed for now.

25 april 2012

Everything has been resoldered and a spare DS18B20 is used now. Everything seems to work again.

29 april 2012

Complete redesign of sources, which makes it easier to integrate new media. Twitter updater added. Space API JSON added.

30 april 2012

Added temperature to the Space API JSON.

october 2012

Status is now controlled by the locks.

august 2013

Everything will have to be redone now that we've moved to a new location.

october 2017

current status ; switch -> spacenanny -> Vinculum -> status -> nfsmount naar NURDServices -> json file -> website -> Nurdbot

Sep 2020

Remove the status vm and made everything rotate around hass switched to https://github.com/NURDspace/space-api-generator running on nurdservices