<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://wiki.initlab.org/api.php?action=feedcontributions&amp;feedformat=atom&amp;user=Slackware</id>
	<title>initLab - User contributions [en]</title>
	<link rel="self" type="application/atom+xml" href="https://wiki.initlab.org/api.php?action=feedcontributions&amp;feedformat=atom&amp;user=Slackware"/>
	<link rel="alternate" type="text/html" href="https://wiki.initlab.org/index.php/Special:Contributions/Slackware"/>
	<updated>2026-06-01T07:29:29Z</updated>
	<subtitle>User contributions</subtitle>
	<generator>MediaWiki 1.37.2</generator>
	<entry>
		<id>https://wiki.initlab.org/index.php?title=InitLabv4/Printers/Konica_Minolta_C3110&amp;diff=549</id>
		<title>InitLabv4/Printers/Konica Minolta C3110</title>
		<link rel="alternate" type="text/html" href="https://wiki.initlab.org/index.php?title=InitLabv4/Printers/Konica_Minolta_C3110&amp;diff=549"/>
		<updated>2024-12-17T08:58:32Z</updated>

		<summary type="html">&lt;p&gt;Slackware: Add link to manuals&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;= TL;DR =&lt;br /&gt;
&lt;br /&gt;
'''Model:''' Konica Minolta C3110&lt;br /&gt;
&lt;br /&gt;
'''URI:''' ''socket://172.31.190.43:9100'' (for printing)  &amp;amp;  ''http://172.31.190.43'' (UI)&lt;br /&gt;
&lt;br /&gt;
'''Location:''' main room&lt;br /&gt;
&lt;br /&gt;
'''Type:''' color laser MFP with ADF&lt;br /&gt;
&lt;br /&gt;
'''Manuals:''' [[:File:Bizhub c3110.zip]] (8 files, 17 MB)&lt;br /&gt;
&lt;br /&gt;
= Overview =&lt;br /&gt;
&lt;br /&gt;
It can be accessed for printing on URI: '''socket://172.31.190.43:9100''' .&lt;br /&gt;
&lt;br /&gt;
UI can be accessed on '''http://172.31.190.43'''&lt;br /&gt;
&lt;br /&gt;
=== Network Printing Instructions ===&lt;br /&gt;
&lt;br /&gt;
[https://openwrt.org/docs/guide-user/services/print_server/p910ndprinterserver#configure_clients See how to connect over the network] &lt;br /&gt;
&lt;br /&gt;
On windows ''TODO'' .&lt;br /&gt;
&lt;br /&gt;
=== Scanning to the Internal Storage ===&lt;br /&gt;
&lt;br /&gt;
[[Image:Scan.jpg|600px]]&lt;br /&gt;
&lt;br /&gt;
Put what you want to scan on the flatbed or the ADF.&lt;br /&gt;
&lt;br /&gt;
# Click on the &amp;lt;code&amp;gt;scan&amp;lt;/code&amp;gt; button&lt;br /&gt;
# Select resolution/scanning mode using the display and the keypad&lt;br /&gt;
## Select destination to the HDD (note that if you select to HDD other people might download the file before you delete it)&lt;br /&gt;
# Select &amp;lt;code&amp;gt;start&amp;lt;/code&amp;gt; (black-and-white or color)&lt;br /&gt;
# Go to http://172.31.190.43/&lt;br /&gt;
# Click on &amp;lt;code&amp;gt;Public User&amp;lt;/code&amp;gt; and &amp;lt;code&amp;gt;Log in&amp;lt;/code&amp;gt;&lt;br /&gt;
# Click on &amp;lt;code&amp;gt;Storage&amp;lt;/code&amp;gt;&lt;br /&gt;
# Click on &amp;lt;code&amp;gt;Public -&amp;gt; View&amp;lt;/code&amp;gt;&lt;br /&gt;
# Select you document and click &amp;lt;code&amp;gt;copy&amp;lt;/code&amp;gt; saving your file&lt;br /&gt;
# &amp;lt;span style=&amp;quot;color: red&amp;quot;&amp;gt;Don't forget to delete you document&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Copying ===&lt;br /&gt;
&lt;br /&gt;
[[Image:copy.jpg|600px]]&lt;br /&gt;
&lt;br /&gt;
# Click on the &amp;lt;code&amp;gt;kopier&amp;lt;/code&amp;gt; button&lt;br /&gt;
# Select resolution/scanning mode using the display and the keypad&lt;br /&gt;
## Select destination to the HDD (note that if you select to HDD other people might download the file before you delete it)&lt;br /&gt;
# Select start (black-and-white or color)&lt;/div&gt;</summary>
		<author><name>Slackware</name></author>
	</entry>
	<entry>
		<id>https://wiki.initlab.org/index.php?title=File:Bizhub_c3110.zip&amp;diff=548</id>
		<title>File:Bizhub c3110.zip</title>
		<link rel="alternate" type="text/html" href="https://wiki.initlab.org/index.php?title=File:Bizhub_c3110.zip&amp;diff=548"/>
		<updated>2024-12-17T08:55:59Z</updated>

		<summary type="html">&lt;p&gt;Slackware: Konica Minolta bizhub C3110 Manuals&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== Summary ==&lt;br /&gt;
Konica Minolta bizhub C3110 Manuals&lt;/div&gt;</summary>
		<author><name>Slackware</name></author>
	</entry>
	<entry>
		<id>https://wiki.initlab.org/index.php?title=Project/DoorSystemV3&amp;diff=547</id>
		<title>Project/DoorSystemV3</title>
		<link rel="alternate" type="text/html" href="https://wiki.initlab.org/index.php?title=Project/DoorSystemV3&amp;diff=547"/>
		<updated>2024-04-16T16:19:12Z</updated>

		<summary type="html">&lt;p&gt;Slackware: change photo&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;''' Door opening system V3 '''&lt;br /&gt;
&lt;br /&gt;
= Basics =&lt;br /&gt;
&lt;br /&gt;
The system controls three separate doors:&lt;br /&gt;
* a black gate to the yard&lt;br /&gt;
* a white door at the back of the building&lt;br /&gt;
* the door at the 3rd floor&lt;br /&gt;
&lt;br /&gt;
The gate is controlled wirelessly, either by an Arduino above spitfire, which sends the appropriate signal, or by a physical remote control, that is wired via a relay, so it can send the signal on demand.&lt;br /&gt;
&lt;br /&gt;
The white door system has two separate pieces: opening the door, and unlocking the door, controlled by two separate mechanisms. The locking is done by an electro-mechanical door lock, and the opening/closing is done by an electro-magnetic door lock.&lt;br /&gt;
&lt;br /&gt;
The third floor door is controlled by a simple electro-mechanical lock.&lt;br /&gt;
&lt;br /&gt;
== Accessing the system ==&lt;br /&gt;
&lt;br /&gt;
The system can be accessed in the following ways:&lt;br /&gt;
&lt;br /&gt;
* using [[Project/Fauna|fauna]], which has been superseeded by [https://space.initlab.org/ Space]&lt;br /&gt;
* by calling [tel:+35924624356 +359 2 462 43 56]. The phone number is routed over VoIP(SIP) from support.bg to spitfire.&lt;br /&gt;
* using the payphone at the front gate (see below)&lt;br /&gt;
* using the [https://t.me/init_Lab_bot init Lab Telegram bot]&lt;br /&gt;
* using the initLabNotifier IRC bot at [ircs://irc.ludost.net/initlab #initlab @ irc.ludost.net]&lt;br /&gt;
* &lt;br /&gt;
&lt;br /&gt;
Also, next to the door there are two buttons on the white box - a red and a green one. The red one locks the door, the green one unlocks it. If the door is open and you press the red button, it will lock 3 seconds after the door is closed. If the red button is pressed and then the door is closed for less than 3 seconds, the lock will not activate. But if the door is then closed for more than 3 seconds, the pending lock operation will be activated.&lt;br /&gt;
&lt;br /&gt;
== Using the phone ==&lt;br /&gt;
&lt;br /&gt;
When you call the phone:&lt;br /&gt;
&lt;br /&gt;
* The system checks if the source phone number is associated to an account, the account has permissions to open at least one door and a PIN has been set previously. If not, the system hangs up.&lt;br /&gt;
* The system picks up, and using a voice depending on the account's locale asks about their PIN code.&lt;br /&gt;
* It waits for a PIN code of at least 6 digits, followed by #, which is verified in the database if it's the right PIN code for this calling number.&lt;br /&gt;
* If the entered code is wrong, you have two more tries, if you fail, it hangs up.&lt;br /&gt;
* If the code entered is the right one, the voice asks which door to open, or if the user wants to lock all doors instead (currently this means lock the back door).&lt;br /&gt;
&lt;br /&gt;
== Using the payphone in front of the gate ==&lt;br /&gt;
&lt;br /&gt;
* This phone is next to the front door&lt;br /&gt;
&amp;lt;gallery&amp;gt;&lt;br /&gt;
File:labphone.jpg&lt;br /&gt;
File:Photo_2024-04-16_19-17-42.jpg&lt;br /&gt;
&amp;lt;/gallery&amp;gt;&lt;br /&gt;
&lt;br /&gt;
* You have to dial 150 to get into the system&lt;br /&gt;
* It'll ask you for your phone number, enter it and # after it&lt;br /&gt;
* Next follow the normal phone instructions (asking for a code, etc.)&lt;br /&gt;
&lt;br /&gt;
= Logging of actions =&lt;br /&gt;
&lt;br /&gt;
The system logs the door opening via [https://twitter.com/initlabkeeper twitter] and IRC (#initlab on irc.ludost.net). The username of the actor is logged, or if they choose to be anonymous, the relevant message is shown instead (Someone who does not wish to be named...). Init Lab board members have access to all actions with the unmasked names, so any abuse of the system can be tracked and accounted for.&lt;br /&gt;
&lt;br /&gt;
= Locking/Unlocking =&lt;br /&gt;
&lt;br /&gt;
The door uses a [http://www.lesibg.com/product.php?ProductID=369 Bulkey BKS300] electro-mechanical lock. It's connected though a [https://www.ipnetcontrol.net/bg/item-products-bg/6r8a NeoMontana NetControl 6R8A] and a [https://www.lesibg.com/product.php?ProductID=11 Bulkey BCP1 controller].&lt;br /&gt;
There are a set of macros on the NetControl device, which can be triggered using HTTP, SNMP or MQTT. It is recommended to use the macros rather than directly controlling the relays, as this allows temporary disabling the access using NetControl's web interface.&lt;br /&gt;
There is an option to override the sensor for closed door - use it with care! It may damage the electro-mechanical lock. It is intended to be used if the sensor malfunctions and the door needs to be locked remotely.&lt;br /&gt;
&lt;br /&gt;
= Opening =&lt;br /&gt;
&lt;br /&gt;
There is a set of scripts on spitfire that send a signal over HTTP to a [https://www.ipnetcontrol.net/bg/item-products-bg/8r2s1a NeoMontana NetControl 8R2S1A], to close a relay for 2 seconds. This relay supplies power to the electro-magnetic lock on the door, so the mechanism frees up the pin inside, and the door can be opened once. After opening and closing the door, the mechanism inside the electro-magnetic lock prevents future opening, until a power impulse is supplied again.&lt;br /&gt;
&lt;br /&gt;
= Settings =&lt;br /&gt;
BCP1 jumpers: JP1 - open, JP2, JP3, JP4 - closed&lt;br /&gt;
&lt;br /&gt;
6R8A settings&lt;br /&gt;
&amp;lt;gallery&amp;gt;&lt;br /&gt;
File:Screenshot from 2021-01-07 06-05-49.png&lt;br /&gt;
File:Screenshot from 2021-01-07 06-08-48.png&lt;br /&gt;
File:Screenshot from 2021-01-07 06-09-31.png&lt;br /&gt;
File:Screenshot from 2021-01-07 06-10-02.png&lt;br /&gt;
File:Screenshot from 2021-01-07 06-10-33.png&lt;br /&gt;
&amp;lt;/gallery&amp;gt;&lt;br /&gt;
Settings that are not visible, are using their factory defaults.&lt;br /&gt;
&lt;br /&gt;
= Connections =&lt;br /&gt;
* BCP1 +12V to 6R8A +12V&lt;br /&gt;
* BCP1 GND to 6R8A GND&lt;br /&gt;
* 6R8A GND to 6R8A Line 2 Terminal 1&lt;br /&gt;
* BCP1 BUT ULK to 6R8A Line 2 Terminal 2&lt;br /&gt;
* 6R8A GND to 6R8A Line 3 Terminal 1&lt;br /&gt;
* 6R8A A1 to 6R8A Line 3 Terminal 2&lt;br /&gt;
* BCP1 DQ to 6R8A A1&lt;br /&gt;
* Red button between 8R6A GND and 8R6A A2&lt;br /&gt;
* Green button between 8R6A GND and 8R6A A3&lt;br /&gt;
* Relay that shorts 8R6A GND and 8R6A A4 (dry contact) when voltage between BCP1 GND and BCP1 RED is +5V&lt;br /&gt;
* Relay that shorts 8R6A GND and 8R6A A5 (dry contact) when voltage between BCP1 GND and BCP1 GRN is +5V&lt;br /&gt;
* BKS300 Motor to BCP1 M+ and -M&lt;br /&gt;
* BKS300 Door sensor to BCP1 GND and DQ&lt;br /&gt;
&lt;br /&gt;
= Sources/links =&lt;br /&gt;
&lt;br /&gt;
* [https://www.lesibg.com/product.php?ProductID=369 Bulkey BKS300 lock]&lt;br /&gt;
* [https://www.lesibg.com/product.php?ProductID=11 Bulkey BCP1 controller]&lt;br /&gt;
* [https://www.ipnetcontrol.net/bg/item-products-bg/6r8a NeoMontana NetControl 6R8A]&lt;br /&gt;
* [https://www.ipnetcontrol.net/bg/item-products-bg/8r2s1a NeoMontana NetControl 8R2S1A]&lt;br /&gt;
* [https://github.com/initLab/fauna Fauna sources on github]&lt;br /&gt;
* [[Project/Fauna|Fauna page on this wiki]]&lt;br /&gt;
&lt;br /&gt;
[[Category:Project]]&lt;/div&gt;</summary>
		<author><name>Slackware</name></author>
	</entry>
	<entry>
		<id>https://wiki.initlab.org/index.php?title=File:Photo_2024-04-16_19-17-42.jpg&amp;diff=546</id>
		<title>File:Photo 2024-04-16 19-17-42.jpg</title>
		<link rel="alternate" type="text/html" href="https://wiki.initlab.org/index.php?title=File:Photo_2024-04-16_19-17-42.jpg&amp;diff=546"/>
		<updated>2024-04-16T16:18:32Z</updated>

		<summary type="html">&lt;p&gt;Slackware: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&lt;/div&gt;</summary>
		<author><name>Slackware</name></author>
	</entry>
	<entry>
		<id>https://wiki.initlab.org/index.php?title=Project/DoorSystemV3&amp;diff=545</id>
		<title>Project/DoorSystemV3</title>
		<link rel="alternate" type="text/html" href="https://wiki.initlab.org/index.php?title=Project/DoorSystemV3&amp;diff=545"/>
		<updated>2024-04-16T16:15:20Z</updated>

		<summary type="html">&lt;p&gt;Slackware: initial description of the new system&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;''' Door opening system V3 '''&lt;br /&gt;
&lt;br /&gt;
= Basics =&lt;br /&gt;
&lt;br /&gt;
The system controls three separate doors:&lt;br /&gt;
* a black gate to the yard&lt;br /&gt;
* a white door at the back of the building&lt;br /&gt;
* the door at the 3rd floor&lt;br /&gt;
&lt;br /&gt;
The gate is controlled wirelessly, either by an Arduino above spitfire, which sends the appropriate signal, or by a physical remote control, that is wired via a relay, so it can send the signal on demand.&lt;br /&gt;
&lt;br /&gt;
The white door system has two separate pieces: opening the door, and unlocking the door, controlled by two separate mechanisms. The locking is done by an electro-mechanical door lock, and the opening/closing is done by an electro-magnetic door lock.&lt;br /&gt;
&lt;br /&gt;
The third floor door is controlled by a simple electro-mechanical lock.&lt;br /&gt;
&lt;br /&gt;
== Accessing the system ==&lt;br /&gt;
&lt;br /&gt;
The system can be accessed in the following ways:&lt;br /&gt;
&lt;br /&gt;
* using [[Project/Fauna|fauna]], which has been superseeded by [https://space.initlab.org/ Space]&lt;br /&gt;
* by calling [tel:+35924624356 +359 2 462 43 56]. The phone number is routed over VoIP(SIP) from support.bg to spitfire.&lt;br /&gt;
* using the payphone at the front gate (see below)&lt;br /&gt;
* using the [https://t.me/init_Lab_bot init Lab Telegram bot]&lt;br /&gt;
* using the initLabNotifier IRC bot at [ircs://irc.ludost.net/initlab #initlab @ irc.ludost.net]&lt;br /&gt;
* &lt;br /&gt;
&lt;br /&gt;
Also, next to the door there are two buttons on the white box - a red and a green one. The red one locks the door, the green one unlocks it. If the door is open and you press the red button, it will lock 3 seconds after the door is closed. If the red button is pressed and then the door is closed for less than 3 seconds, the lock will not activate. But if the door is then closed for more than 3 seconds, the pending lock operation will be activated.&lt;br /&gt;
&lt;br /&gt;
== Using the phone ==&lt;br /&gt;
&lt;br /&gt;
When you call the phone:&lt;br /&gt;
&lt;br /&gt;
* The system checks if the source phone number is associated to an account, the account has permissions to open at least one door and a PIN has been set previously. If not, the system hangs up.&lt;br /&gt;
* The system picks up, and using a voice depending on the account's locale asks about their PIN code.&lt;br /&gt;
* It waits for a PIN code of at least 6 digits, followed by #, which is verified in the database if it's the right PIN code for this calling number.&lt;br /&gt;
* If the entered code is wrong, you have two more tries, if you fail, it hangs up.&lt;br /&gt;
* If the code entered is the right one, the voice asks which door to open, or if the user wants to lock all doors instead (currently this means lock the back door).&lt;br /&gt;
&lt;br /&gt;
== Using the payphone in front of the gate ==&lt;br /&gt;
&lt;br /&gt;
* This phone is next to the front door&lt;br /&gt;
&amp;lt;gallery&amp;gt;&lt;br /&gt;
File:labphone.jpg&lt;br /&gt;
File:labphone1.jpg&lt;br /&gt;
File:labphone2.jpg&lt;br /&gt;
&amp;lt;/gallery&amp;gt;&lt;br /&gt;
&lt;br /&gt;
* You have to dial 150 to get into the system&lt;br /&gt;
* It'll ask you for your phone number, enter it and # after it&lt;br /&gt;
* Next follow the normal phone instructions (asking for a code, etc.)&lt;br /&gt;
&lt;br /&gt;
= Logging of actions =&lt;br /&gt;
&lt;br /&gt;
The system logs the door opening via [https://twitter.com/initlabkeeper twitter] and IRC (#initlab on irc.ludost.net). The username of the actor is logged, or if they choose to be anonymous, the relevant message is shown instead (Someone who does not wish to be named...). Init Lab board members have access to all actions with the unmasked names, so any abuse of the system can be tracked and accounted for.&lt;br /&gt;
&lt;br /&gt;
= Locking/Unlocking =&lt;br /&gt;
&lt;br /&gt;
The door uses a [http://www.lesibg.com/product.php?ProductID=369 Bulkey BKS300] electro-mechanical lock. It's connected though a [https://www.ipnetcontrol.net/bg/item-products-bg/6r8a NeoMontana NetControl 6R8A] and a [https://www.lesibg.com/product.php?ProductID=11 Bulkey BCP1 controller].&lt;br /&gt;
There are a set of macros on the NetControl device, which can be triggered using HTTP, SNMP or MQTT. It is recommended to use the macros rather than directly controlling the relays, as this allows temporary disabling the access using NetControl's web interface.&lt;br /&gt;
There is an option to override the sensor for closed door - use it with care! It may damage the electro-mechanical lock. It is intended to be used if the sensor malfunctions and the door needs to be locked remotely.&lt;br /&gt;
&lt;br /&gt;
= Opening =&lt;br /&gt;
&lt;br /&gt;
There is a set of scripts on spitfire that send a signal over HTTP to a [https://www.ipnetcontrol.net/bg/item-products-bg/8r2s1a NeoMontana NetControl 8R2S1A], to close a relay for 2 seconds. This relay supplies power to the electro-magnetic lock on the door, so the mechanism frees up the pin inside, and the door can be opened once. After opening and closing the door, the mechanism inside the electro-magnetic lock prevents future opening, until a power impulse is supplied again.&lt;br /&gt;
&lt;br /&gt;
= Settings =&lt;br /&gt;
BCP1 jumpers: JP1 - open, JP2, JP3, JP4 - closed&lt;br /&gt;
&lt;br /&gt;
6R8A settings&lt;br /&gt;
&amp;lt;gallery&amp;gt;&lt;br /&gt;
File:Screenshot from 2021-01-07 06-05-49.png&lt;br /&gt;
File:Screenshot from 2021-01-07 06-08-48.png&lt;br /&gt;
File:Screenshot from 2021-01-07 06-09-31.png&lt;br /&gt;
File:Screenshot from 2021-01-07 06-10-02.png&lt;br /&gt;
File:Screenshot from 2021-01-07 06-10-33.png&lt;br /&gt;
&amp;lt;/gallery&amp;gt;&lt;br /&gt;
Settings that are not visible, are using their factory defaults.&lt;br /&gt;
&lt;br /&gt;
= Connections =&lt;br /&gt;
* BCP1 +12V to 6R8A +12V&lt;br /&gt;
* BCP1 GND to 6R8A GND&lt;br /&gt;
* 6R8A GND to 6R8A Line 2 Terminal 1&lt;br /&gt;
* BCP1 BUT ULK to 6R8A Line 2 Terminal 2&lt;br /&gt;
* 6R8A GND to 6R8A Line 3 Terminal 1&lt;br /&gt;
* 6R8A A1 to 6R8A Line 3 Terminal 2&lt;br /&gt;
* BCP1 DQ to 6R8A A1&lt;br /&gt;
* Red button between 8R6A GND and 8R6A A2&lt;br /&gt;
* Green button between 8R6A GND and 8R6A A3&lt;br /&gt;
* Relay that shorts 8R6A GND and 8R6A A4 (dry contact) when voltage between BCP1 GND and BCP1 RED is +5V&lt;br /&gt;
* Relay that shorts 8R6A GND and 8R6A A5 (dry contact) when voltage between BCP1 GND and BCP1 GRN is +5V&lt;br /&gt;
* BKS300 Motor to BCP1 M+ and -M&lt;br /&gt;
* BKS300 Door sensor to BCP1 GND and DQ&lt;br /&gt;
&lt;br /&gt;
= Sources/links =&lt;br /&gt;
&lt;br /&gt;
* [https://www.lesibg.com/product.php?ProductID=369 Bulkey BKS300 lock]&lt;br /&gt;
* [https://www.lesibg.com/product.php?ProductID=11 Bulkey BCP1 controller]&lt;br /&gt;
* [https://www.ipnetcontrol.net/bg/item-products-bg/6r8a NeoMontana NetControl 6R8A]&lt;br /&gt;
* [https://www.ipnetcontrol.net/bg/item-products-bg/8r2s1a NeoMontana NetControl 8R2S1A]&lt;br /&gt;
* [https://github.com/initLab/fauna Fauna sources on github]&lt;br /&gt;
* [[Project/Fauna|Fauna page on this wiki]]&lt;br /&gt;
&lt;br /&gt;
[[Category:Project]]&lt;/div&gt;</summary>
		<author><name>Slackware</name></author>
	</entry>
	<entry>
		<id>https://wiki.initlab.org/index.php?title=BluetoothMusicStreaming&amp;diff=530</id>
		<title>BluetoothMusicStreaming</title>
		<link rel="alternate" type="text/html" href="https://wiki.initlab.org/index.php?title=BluetoothMusicStreaming&amp;diff=530"/>
		<updated>2024-02-21T18:11:09Z</updated>

		<summary type="html">&lt;p&gt;Slackware: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;You can listen to music in the Big room, assuming that the setup is still working. There is a Raspberry Pi, that is connected to the black speakers.&lt;br /&gt;
&lt;br /&gt;
* Search for bluetooth devices on your computer/phone&lt;br /&gt;
* Connect to &amp;quot;lassie&amp;quot;&lt;br /&gt;
* Enter the PIN code 5969&lt;br /&gt;
* Play your favourite music&lt;br /&gt;
&lt;br /&gt;
Please note that in order to play music on the speakers, it is advisable to communicate this with the other occupants of the room, in advance.&lt;/div&gt;</summary>
		<author><name>Slackware</name></author>
	</entry>
	<entry>
		<id>https://wiki.initlab.org/index.php?title=BluetoothMusicStreaming&amp;diff=529</id>
		<title>BluetoothMusicStreaming</title>
		<link rel="alternate" type="text/html" href="https://wiki.initlab.org/index.php?title=BluetoothMusicStreaming&amp;diff=529"/>
		<updated>2024-02-21T18:10:22Z</updated>

		<summary type="html">&lt;p&gt;Slackware: Created page with &amp;quot;You can listen to music in the Big room, assuming that the setup is still working. There is a Raspberry Pi, that is connected to the black speakers. - Search for bluetooth devices on your computer/phone - Connect to &amp;quot;lassie&amp;quot; - Enter the PIN code 5969 - Play your favourite music Please note that in order to play music on the speakers, it is advisable to communicate this with the other occupants of the room, in advance.&amp;quot;&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;You can listen to music in the Big room, assuming that the setup is still working. There is a Raspberry Pi, that is connected to the black speakers.&lt;br /&gt;
- Search for bluetooth devices on your computer/phone&lt;br /&gt;
- Connect to &amp;quot;lassie&amp;quot;&lt;br /&gt;
- Enter the PIN code 5969&lt;br /&gt;
- Play your favourite music&lt;br /&gt;
Please note that in order to play music on the speakers, it is advisable to communicate this with the other occupants of the room, in advance.&lt;/div&gt;</summary>
		<author><name>Slackware</name></author>
	</entry>
	<entry>
		<id>https://wiki.initlab.org/index.php?title=Space&amp;diff=528</id>
		<title>Space</title>
		<link rel="alternate" type="text/html" href="https://wiki.initlab.org/index.php?title=Space&amp;diff=528"/>
		<updated>2024-01-28T21:10:41Z</updated>

		<summary type="html">&lt;p&gt;Slackware: Changed redirect target from InitLabv3 to InitLabv4&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;#REDIRECT [[initLabv4]]&lt;/div&gt;</summary>
		<author><name>Slackware</name></author>
	</entry>
	<entry>
		<id>https://wiki.initlab.org/index.php?title=Project/DoorSystemV3&amp;diff=519</id>
		<title>Project/DoorSystemV3</title>
		<link rel="alternate" type="text/html" href="https://wiki.initlab.org/index.php?title=Project/DoorSystemV3&amp;diff=519"/>
		<updated>2022-06-05T18:46:59Z</updated>

		<summary type="html">&lt;p&gt;Slackware: Copy v2&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;''' Door opening system V3 '''&lt;br /&gt;
&lt;br /&gt;
= Basics =&lt;br /&gt;
&lt;br /&gt;
The system has two separate pieces: opening the door, and unlocking the door, controlled by two separate mechanisms. The locking is done by an electro-mechanical door lock, and the opening/closing is done by an electro-magnetic door lock.&lt;br /&gt;
&lt;br /&gt;
== Accessing the system(s) ==&lt;br /&gt;
&lt;br /&gt;
The system can be accessed remotely in two ways: using [[Project/Fauna|fauna]] or by calling +359-24624356. The phone number is routed over VoIP(SIP) from support.bg to spitfire.&lt;br /&gt;
&lt;br /&gt;
Also, next to the door there are two buttons on the white box - a red and a green one. The red one locks the door, the green one unlocks it. If the door is open and you press the red button, it will lock 3 seconds after the door is closed. If the red button is pressed and then the door is closed for less than 3 seconds, the lock will not activate. But if the door is then closed for more than 3 seconds, the pending lock operation will be activated.&lt;br /&gt;
&lt;br /&gt;
== Using the phone ==&lt;br /&gt;
&lt;br /&gt;
When you call the phone:&lt;br /&gt;
&lt;br /&gt;
* If the door is locked:&lt;br /&gt;
** The system checks if the source phone number is in the list of allowed-to-unlock people. If not, the system hangs up.&lt;br /&gt;
** The system picks up, and using a voice similar to that of Stephen Hawking asks &amp;quot;Enter code&amp;quot;.&lt;br /&gt;
** It waits for a 6-digit pin code, which is verified in the database if it's the right PIN code for this calling number.&lt;br /&gt;
** If the entered code is wrong, the voice says &amp;quot;Wrong&amp;quot;. You have three tries, if you fail, it says &amp;quot;Fuck off&amp;quot; and hangs up.&lt;br /&gt;
** If the code entered is the right one, the voice says &amp;quot;Opening door&amp;quot;, unlocks the door and opens it.&lt;br /&gt;
*** The system then logs the door opening and unlocking, as like in the opening below.&lt;br /&gt;
* If the door is not locked:&lt;br /&gt;
** The system opens the door&lt;br /&gt;
** The system logs the door opening via [https://twitter.com/initlabkeeper twitter] and IRC (#initlab on irc.ludost.net). Using the source phone number, a textual ID is looked up in the [[Project/Fauna|Fauna]] database and logged, if the user has register its phone number.&lt;br /&gt;
&lt;br /&gt;
== Using the bulphone in front of the door ==&lt;br /&gt;
&lt;br /&gt;
* This phone is next to the front door&lt;br /&gt;
&amp;lt;gallery&amp;gt;&lt;br /&gt;
File:labphone.jpg&lt;br /&gt;
File:labphone1.jpg&lt;br /&gt;
File:labphone2.jpg&lt;br /&gt;
&amp;lt;/gallery&amp;gt;&lt;br /&gt;
&lt;br /&gt;
* You have to dial 150 to get into the system&lt;br /&gt;
* It'll ask you for you phone number, enter it and # after it&lt;br /&gt;
* Next follow the normal phone instructions (asking for a code, etc.)&lt;br /&gt;
&lt;br /&gt;
= Locking/Unlocking =&lt;br /&gt;
&lt;br /&gt;
The door uses a [http://www.lesibg.com/product.php?ProductID=369 Bulkey BKS300] electro-mechanical lock. It's connected though a [https://www.ipnetcontrol.net/bg/item-products-bg/6r8a NeoMontana NetControl 6R8A] and a [https://www.lesibg.com/product.php?ProductID=11 Bulkey BCP1 controller].&lt;br /&gt;
There are a set of macros on the NetControl device, which can be triggered using HTTP, SNMP or MQTT. It is recommended to use the macros rather than directly controlling the relays, as this allows temporary disabling the access using NetControl's web interface.&lt;br /&gt;
There is an option to override the sensor for closed door - use it with care! It may damage the electro-mechanical lock. It is intended to be used if the sensor malfunctions and the door needs to be locked remotely.&lt;br /&gt;
&lt;br /&gt;
= Opening =&lt;br /&gt;
&lt;br /&gt;
There is a set of scripts on spitfire that send a signal over HTTP to a [https://www.ipnetcontrol.net/bg/item-products-bg/8r2s1a NeoMontana NetControl 8R2S1A], to close a relay for 2 seconds. This relay supplies power to the electro-magnetic lock on the door, so the mechanism frees up the pin inside, and the door can be opened once. After opening and closing the door, the mechanism inside the electro-magnetic lock prevents future opening, until a power impulse is supplied again.&lt;br /&gt;
&lt;br /&gt;
= Settings =&lt;br /&gt;
BCP1 jumpers: JP1 - open, JP2, JP3, JP4 - closed&lt;br /&gt;
&lt;br /&gt;
6R8A settings&lt;br /&gt;
&amp;lt;gallery&amp;gt;&lt;br /&gt;
File:Screenshot from 2021-01-07 06-05-49.png&lt;br /&gt;
File:Screenshot from 2021-01-07 06-08-48.png&lt;br /&gt;
File:Screenshot from 2021-01-07 06-09-31.png&lt;br /&gt;
File:Screenshot from 2021-01-07 06-10-02.png&lt;br /&gt;
File:Screenshot from 2021-01-07 06-10-33.png&lt;br /&gt;
&amp;lt;/gallery&amp;gt;&lt;br /&gt;
Settings that are not visible, are using their factory defaults.&lt;br /&gt;
&lt;br /&gt;
= Connections =&lt;br /&gt;
* BCP1 +12V to 6R8A +12V&lt;br /&gt;
* BCP1 GND to 6R8A GND&lt;br /&gt;
* 6R8A GND to 6R8A Line 2 Terminal 1&lt;br /&gt;
* BCP1 BUT ULK to 6R8A Line 2 Terminal 2&lt;br /&gt;
* 6R8A GND to 6R8A Line 3 Terminal 1&lt;br /&gt;
* 6R8A A1 to 6R8A Line 3 Terminal 2&lt;br /&gt;
* BCP1 DQ to 6R8A A1&lt;br /&gt;
* Red button between 8R6A GND and 8R6A A2&lt;br /&gt;
* Green button between 8R6A GND and 8R6A A3&lt;br /&gt;
* Relay that shorts 8R6A GND and 8R6A A4 (dry contact) when voltage between BCP1 GND and BCP1 RED is +5V&lt;br /&gt;
* Relay that shorts 8R6A GND and 8R6A A5 (dry contact) when voltage between BCP1 GND and BCP1 GRN is +5V&lt;br /&gt;
* BKS300 Motor to BCP1 M+ and -M&lt;br /&gt;
* BKS300 Door sensor to BCP1 GND and DQ&lt;br /&gt;
&lt;br /&gt;
= Sources/links =&lt;br /&gt;
&lt;br /&gt;
* [https://www.lesibg.com/product.php?ProductID=369 Bulkey BKS300 lock]&lt;br /&gt;
* [https://www.lesibg.com/product.php?ProductID=11 Bulkey BCP1 controller]&lt;br /&gt;
* [https://www.ipnetcontrol.net/bg/item-products-bg/6r8a NeoMontana NetControl 6R8A]&lt;br /&gt;
* [https://www.ipnetcontrol.net/bg/item-products-bg/8r2s1a NeoMontana NetControl 8R2S1A]&lt;br /&gt;
* [https://github.com/initLab/fauna Fauna sources on github]&lt;br /&gt;
* [[Project/Fauna|Fauna page on this wiki]]&lt;br /&gt;
&lt;br /&gt;
[[Category:Project]]&lt;/div&gt;</summary>
		<author><name>Slackware</name></author>
	</entry>
	<entry>
		<id>https://wiki.initlab.org/index.php?title=Project/Spitfire/Apps&amp;diff=515</id>
		<title>Project/Spitfire/Apps</title>
		<link rel="alternate" type="text/html" href="https://wiki.initlab.org/index.php?title=Project/Spitfire/Apps&amp;diff=515"/>
		<updated>2021-07-04T18:07:49Z</updated>

		<summary type="html">&lt;p&gt;Slackware: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;There are several apps/scripts, running on our main Lab server (spitfire.initlab.org). They run as user '''apps'''.&lt;br /&gt;
&lt;br /&gt;
To access them, login as root, and use the following command:&lt;br /&gt;
&lt;br /&gt;
'''sudo -iu apps'''&lt;br /&gt;
&lt;br /&gt;
== Status monitoring and management ==&lt;br /&gt;
&lt;br /&gt;
You can see the running apps using:&lt;br /&gt;
&lt;br /&gt;
'''pm2 list'''&lt;br /&gt;
&lt;br /&gt;
or see a log browser and live metrics using:&lt;br /&gt;
&lt;br /&gt;
'''pm2 monit'''&lt;br /&gt;
&lt;br /&gt;
These apps restart automatically on crash. In order to stop any of them, note its number in '''pm2 list''', and issue the command:&lt;br /&gt;
&lt;br /&gt;
'''pm2 stop 23''' (where 23 is the ID of the app)&lt;br /&gt;
&lt;br /&gt;
Then to start:&lt;br /&gt;
&lt;br /&gt;
'''pm2 start 23'''&lt;br /&gt;
&lt;br /&gt;
[https://pm2.keymetrics.io/docs/usage/quick-start/ More info about PM2]&lt;br /&gt;
&lt;br /&gt;
If you want to check or manage the status the whole process manager (pm2), please use the systemd unit '''pm2-apps.service''' as root. It is responsible for starting the process manager and all apps on system boot.&lt;br /&gt;
&lt;br /&gt;
'''systemctl start pm2-apps'''&lt;br /&gt;
&lt;br /&gt;
'''systemctl stop pm2-apps'''&lt;br /&gt;
&lt;br /&gt;
'''systemctl restart pm2-apps'''&lt;br /&gt;
&lt;br /&gt;
'''systemctl status pm2-apps'''&lt;br /&gt;
&lt;br /&gt;
== Add a new app ==&lt;br /&gt;
&lt;br /&gt;
As user '''apps''':&lt;br /&gt;
&lt;br /&gt;
*'''git clone URL-OF-APP'''&lt;br /&gt;
&lt;br /&gt;
*'''cd DIR-OF-APP'''&lt;br /&gt;
&lt;br /&gt;
*'''npm install'''&lt;br /&gt;
&lt;br /&gt;
* create/adjust the app config, if necessary&lt;br /&gt;
&lt;br /&gt;
*'''cd ..'''&lt;br /&gt;
&lt;br /&gt;
* edit '''ecosystem.config.js''', be careful about trailing commas&lt;br /&gt;
&lt;br /&gt;
*'''pm2 reload ecosystem.config.js''' (this will start the new app, if properly added and configured)&lt;br /&gt;
&lt;br /&gt;
*'''pm2 save''' (this will add the app to startup list)&lt;br /&gt;
&lt;br /&gt;
== Description of each app ==&lt;br /&gt;
&lt;br /&gt;
* 433MHz&amp;lt;-&amp;gt;MQTT ([https://github.com/initLab/uart-rf-mqtt uart-rf-mqtt]): Bridges the serial interface with Arduino board and RF 433MHz RX/TX boards, with the MQTT server so other apps can send commands to RF devices (door bells, door opening modules), and receive commands from RF-enabled devices (e.g. remote control fobs).&lt;br /&gt;
&lt;br /&gt;
* BLE-&amp;gt;MQTT ([https://github.com/initLab/mi-hygrothermograph-mqtt mi-hygrothermograph-mqtt]): Receives Xiaomi thermo/humidity sensor readings on BLE, decrypts the packets and sends the readings over MQTT.&lt;br /&gt;
&lt;br /&gt;
* MQTT-&amp;gt;collectd ([https://github.com/initLab/mqtt-proxy mqtt-proxy]): Receives sensor or appliance readings on MQTT and writes the readings to collectd using the plain text protocol on collectd's UNIX socket.&lt;br /&gt;
&lt;br /&gt;
* gosho ([https://github.com/initLab/gosho gosho]): Provides [[Project/Fauna|Fauna]]-compliant API, and either presents a dummy data, or communicates with a NetControl device, to read and change init Lab's door lock (currently not operational, but prevents &amp;quot;undefined door status&amp;quot; message in Fauna).&lt;br /&gt;
&lt;br /&gt;
* initLabNotifier ([https://github.com/initLab/irc-notifier irc-notifier]): An IRC bot, which announces some events that happen at the Lab, and has a couple of useful commands (use !help in the IRC channel, or on private message with the bot).&lt;br /&gt;
&lt;br /&gt;
== Diagram of the services ==&lt;br /&gt;
&lt;br /&gt;
[[File:Initlab-apps.png|thumb|left]]&lt;/div&gt;</summary>
		<author><name>Slackware</name></author>
	</entry>
	<entry>
		<id>https://wiki.initlab.org/index.php?title=File:Initlab-apps.png&amp;diff=514</id>
		<title>File:Initlab-apps.png</title>
		<link rel="alternate" type="text/html" href="https://wiki.initlab.org/index.php?title=File:Initlab-apps.png&amp;diff=514"/>
		<updated>2021-07-04T18:06:50Z</updated>

		<summary type="html">&lt;p&gt;Slackware: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&lt;/div&gt;</summary>
		<author><name>Slackware</name></author>
	</entry>
	<entry>
		<id>https://wiki.initlab.org/index.php?title=Project/Spitfire/Apps&amp;diff=513</id>
		<title>Project/Spitfire/Apps</title>
		<link rel="alternate" type="text/html" href="https://wiki.initlab.org/index.php?title=Project/Spitfire/Apps&amp;diff=513"/>
		<updated>2021-07-04T17:17:19Z</updated>

		<summary type="html">&lt;p&gt;Slackware: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;There are several apps/scripts, running on our main Lab server (spitfire.initlab.org). They run as user '''apps'''.&lt;br /&gt;
&lt;br /&gt;
To access them, login as root, and use the following command:&lt;br /&gt;
&lt;br /&gt;
'''sudo -iu apps'''&lt;br /&gt;
&lt;br /&gt;
== Status monitoring and management ==&lt;br /&gt;
&lt;br /&gt;
You can see the running apps using:&lt;br /&gt;
&lt;br /&gt;
'''pm2 list'''&lt;br /&gt;
&lt;br /&gt;
or see a log browser and live metrics using:&lt;br /&gt;
&lt;br /&gt;
'''pm2 monit'''&lt;br /&gt;
&lt;br /&gt;
These apps restart automatically on crash. In order to stop any of them, note its number in '''pm2 list''', and issue the command:&lt;br /&gt;
&lt;br /&gt;
'''pm2 stop 23''' (where 23 is the ID of the app)&lt;br /&gt;
&lt;br /&gt;
Then to start:&lt;br /&gt;
&lt;br /&gt;
'''pm2 start 23'''&lt;br /&gt;
&lt;br /&gt;
[https://pm2.keymetrics.io/docs/usage/quick-start/ More info about PM2]&lt;br /&gt;
&lt;br /&gt;
If you want to check or manage the status the whole process manager (pm2), please use the systemd unit '''pm2-apps.service''' as root. It is responsible for starting the process manager and all apps on system boot.&lt;br /&gt;
&lt;br /&gt;
'''systemctl start pm2-apps'''&lt;br /&gt;
&lt;br /&gt;
'''systemctl stop pm2-apps'''&lt;br /&gt;
&lt;br /&gt;
'''systemctl restart pm2-apps'''&lt;br /&gt;
&lt;br /&gt;
'''systemctl status pm2-apps'''&lt;br /&gt;
&lt;br /&gt;
== Add a new app ==&lt;br /&gt;
&lt;br /&gt;
As user '''apps''':&lt;br /&gt;
&lt;br /&gt;
*'''git clone URL-OF-APP'''&lt;br /&gt;
&lt;br /&gt;
*'''cd DIR-OF-APP'''&lt;br /&gt;
&lt;br /&gt;
*'''npm install'''&lt;br /&gt;
&lt;br /&gt;
* create/adjust the app config, if necessary&lt;br /&gt;
&lt;br /&gt;
*'''cd ..'''&lt;br /&gt;
&lt;br /&gt;
* edit '''ecosystem.config.js''', be careful about trailing commas&lt;br /&gt;
&lt;br /&gt;
*'''pm2 reload ecosystem.config.js''' (this will start the new app, if properly added and configured)&lt;br /&gt;
&lt;br /&gt;
*'''pm2 save''' (this will add the app to startup list)&lt;br /&gt;
&lt;br /&gt;
== Description of each app ==&lt;br /&gt;
&lt;br /&gt;
* 433MHz&amp;lt;-&amp;gt;MQTT ([https://github.com/initLab/uart-rf-mqtt uart-rf-mqtt]): Bridges the serial interface with Arduino board and RF 433MHz RX/TX boards, with the MQTT server so other apps can send commands to RF devices (door bells, door opening modules), and receive commands from RF-enabled devices (e.g. remote control fobs).&lt;br /&gt;
&lt;br /&gt;
* BLE-&amp;gt;MQTT ([https://github.com/initLab/mi-hygrothermograph-mqtt mi-hygrothermograph-mqtt]): Receives Xiaomi thermo/humidity sensor readings on BLE, decrypts the packets and sends the readings over MQTT.&lt;br /&gt;
&lt;br /&gt;
* MQTT-&amp;gt;collectd ([https://github.com/initLab/mqtt-proxy mqtt-proxy]): Receives sensor or appliance readings on MQTT and writes the readings to collectd using the plain text protocol on collectd's UNIX socket.&lt;br /&gt;
&lt;br /&gt;
* gosho ([https://github.com/initLab/gosho gosho]): Provides [[Project/Fauna|Fauna]]-compliant API, and either presents a dummy data, or communicates with a NetControl device, to read and change init Lab's door lock (currently not operational, but prevents &amp;quot;undefined door status&amp;quot; message in Fauna).&lt;br /&gt;
&lt;br /&gt;
* initLabNotifier ([https://github.com/initLab/irc-notifier irc-notifier]): An IRC bot, which announces some events that happen at the Lab, and has a couple of useful commands (use !help in the IRC channel, or on private message with the bot).&lt;/div&gt;</summary>
		<author><name>Slackware</name></author>
	</entry>
	<entry>
		<id>https://wiki.initlab.org/index.php?title=Project/Spitfire/Apps&amp;diff=512</id>
		<title>Project/Spitfire/Apps</title>
		<link rel="alternate" type="text/html" href="https://wiki.initlab.org/index.php?title=Project/Spitfire/Apps&amp;diff=512"/>
		<updated>2021-07-04T17:16:07Z</updated>

		<summary type="html">&lt;p&gt;Slackware: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;There are several apps/scripts, running on our main Lab server (spitfire.initlab.org). They run as user '''apps'''.&lt;br /&gt;
&lt;br /&gt;
To access them, login as root, and use the following command:&lt;br /&gt;
&lt;br /&gt;
'''sudo -iu apps'''&lt;br /&gt;
&lt;br /&gt;
== Status monitoring and management ==&lt;br /&gt;
&lt;br /&gt;
You can see the running apps using:&lt;br /&gt;
&lt;br /&gt;
'''pm2 list'''&lt;br /&gt;
&lt;br /&gt;
or see a log browser and live metrics using:&lt;br /&gt;
&lt;br /&gt;
'''pm2 monit'''&lt;br /&gt;
&lt;br /&gt;
These apps restart automatically on crash. In order to stop any of them, note its number in '''pm2 list''', and issue the command:&lt;br /&gt;
&lt;br /&gt;
'''pm2 stop 23''' (where 23 is the ID of the app)&lt;br /&gt;
&lt;br /&gt;
Then to start:&lt;br /&gt;
&lt;br /&gt;
'''pm2 start 23'''&lt;br /&gt;
&lt;br /&gt;
[https://pm2.keymetrics.io/docs/usage/quick-start/ More info about PM2]&lt;br /&gt;
&lt;br /&gt;
If you want to check or manage the status the whole process manager (pm2), please use the systemd unit '''pm2-apps.service''' as root. It is responsible for starting the process manager and all apps on system boot.&lt;br /&gt;
&lt;br /&gt;
'''systemctl start pm2-apps'''&lt;br /&gt;
&lt;br /&gt;
'''systemctl stop pm2-apps'''&lt;br /&gt;
&lt;br /&gt;
'''systemctl restart pm2-apps'''&lt;br /&gt;
&lt;br /&gt;
'''systemctl status pm2-apps'''&lt;br /&gt;
&lt;br /&gt;
== Add a new app ==&lt;br /&gt;
&lt;br /&gt;
As user '''apps''':&lt;br /&gt;
&lt;br /&gt;
*'''git clone URL-OF-APP'''&lt;br /&gt;
&lt;br /&gt;
*'''cd DIR-OF-APP'''&lt;br /&gt;
&lt;br /&gt;
*'''npm install'''&lt;br /&gt;
&lt;br /&gt;
* create/adjust the app config, if necessary&lt;br /&gt;
&lt;br /&gt;
*'''cd ..'''&lt;br /&gt;
&lt;br /&gt;
* edit '''ecosystem.config.js''', be careful about trailing commas&lt;br /&gt;
&lt;br /&gt;
*'''pm2 reload ecosystem.config.js''' (this will start the new app, if properly added and configured)&lt;br /&gt;
&lt;br /&gt;
*'''pm2 save''' (this will add the app to startup list)&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Description of each app ==&lt;br /&gt;
&lt;br /&gt;
* 433MHz&amp;lt;-&amp;gt;MQTT ([https://github.com/initLab/uart-rf-mqtt uart-rf-mqtt]): Bridges the serial interface with Arduino board and RF 433MHz RX/TX boards, with the MQTT server so other apps can send commands to RF devices (door bells, door opening modules), and receive commands from RF-enabled devices (e.g. remote control fobs).&lt;br /&gt;
&lt;br /&gt;
* BLE-&amp;gt;MQTT ([https://github.com/initLab/mi-hygrothermograph-mqtt mi-hygrothermograph-mqtt]): Receives Xiaomi thermo/humidity sensor readings on BLE, decrypts the packets and sends the readings over MQTT.&lt;br /&gt;
&lt;br /&gt;
* MQTT-&amp;gt;collectd ([https://github.com/initLab/mqtt-proxy mqtt-proxy]): Receives sensor or appliance readings on MQTT and writes the readings to collectd using the plain text protocol on collectd's UNIX socket.&lt;br /&gt;
&lt;br /&gt;
* gosho ([https://github.com/initLab/gosho gosho]): Provides [[Project/Fauna|Fauna]]-compliant API, and either presents a dummy data, or communicates with a NetControl device, to read and change init Lab's door lock (currently not operational, but prevents &amp;quot;undefined door status&amp;quot; message in Fauna).&lt;br /&gt;
&lt;br /&gt;
* initLabNotifier ([https://github.com/initLab/irc-notifier irc-notifier]): An IRC bot, which announces some events that happen at the Lab, and has a couple of useful commands (use !help in the IRC channel, or on private message with the bot).&lt;/div&gt;</summary>
		<author><name>Slackware</name></author>
	</entry>
	<entry>
		<id>https://wiki.initlab.org/index.php?title=Project/Spitfire/Apps&amp;diff=511</id>
		<title>Project/Spitfire/Apps</title>
		<link rel="alternate" type="text/html" href="https://wiki.initlab.org/index.php?title=Project/Spitfire/Apps&amp;diff=511"/>
		<updated>2021-07-04T17:03:54Z</updated>

		<summary type="html">&lt;p&gt;Slackware: Created page with &amp;quot;There are several apps/scripts, running on our main Lab server (spitfire.initlab.org). They run as user '''apps'''.  To access them, login as root, and use the following comma...&amp;quot;&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;There are several apps/scripts, running on our main Lab server (spitfire.initlab.org). They run as user '''apps'''.&lt;br /&gt;
&lt;br /&gt;
To access them, login as root, and use the following command:&lt;br /&gt;
&lt;br /&gt;
'''sudo -iu apps'''&lt;br /&gt;
&lt;br /&gt;
== Status monitoring and management ==&lt;br /&gt;
&lt;br /&gt;
You can see the running apps using:&lt;br /&gt;
&lt;br /&gt;
'''pm2 list'''&lt;br /&gt;
&lt;br /&gt;
or see a log browser and live metrics using:&lt;br /&gt;
&lt;br /&gt;
'''pm2 monit'''&lt;br /&gt;
&lt;br /&gt;
These apps restart automatically on crash. In order to stop any of them, note its number in '''pm2 list''', and issue the command:&lt;br /&gt;
&lt;br /&gt;
'''pm2 stop 23''' (where 23 is the ID of the app)&lt;br /&gt;
&lt;br /&gt;
Then to start:&lt;br /&gt;
&lt;br /&gt;
'''pm2 start 23'''&lt;br /&gt;
&lt;br /&gt;
More info about PM2: https://pm2.keymetrics.io/docs/usage/quick-start/&lt;br /&gt;
&lt;br /&gt;
If you want to check or manage the status the whole process manager (pm2), please use the systemd unit '''pm2-apps.service''' as root. It is responsible for starting the process manager and all apps on system boot.&lt;br /&gt;
&lt;br /&gt;
'''systemctl start pm2-apps'''&lt;br /&gt;
&lt;br /&gt;
'''systemctl stop pm2-apps'''&lt;br /&gt;
&lt;br /&gt;
'''systemctl restart pm2-apps'''&lt;br /&gt;
&lt;br /&gt;
'''systemctl status pm2-apps'''&lt;br /&gt;
&lt;br /&gt;
== Add a new app ==&lt;br /&gt;
&lt;br /&gt;
As user '''apps''':&lt;br /&gt;
&lt;br /&gt;
*'''git clone URL-OF-APP'''&lt;br /&gt;
&lt;br /&gt;
*'''cd DIR-OF-APP'''&lt;br /&gt;
&lt;br /&gt;
*'''npm install'''&lt;br /&gt;
&lt;br /&gt;
* create/adjust the app config, if necessary&lt;br /&gt;
&lt;br /&gt;
*'''cd ..'''&lt;br /&gt;
&lt;br /&gt;
* edit '''ecosystem.config.js''', be careful about trailing commas&lt;br /&gt;
&lt;br /&gt;
*'''pm2 reload ecosystem.config.js''' (this will start the new app, if properly added and configured)&lt;br /&gt;
&lt;br /&gt;
*'''pm2 save''' (this will add the app to startup list)&lt;/div&gt;</summary>
		<author><name>Slackware</name></author>
	</entry>
	<entry>
		<id>https://wiki.initlab.org/index.php?title=Project/DoorSystemV2&amp;diff=503</id>
		<title>Project/DoorSystemV2</title>
		<link rel="alternate" type="text/html" href="https://wiki.initlab.org/index.php?title=Project/DoorSystemV2&amp;diff=503"/>
		<updated>2021-01-07T04:28:00Z</updated>

		<summary type="html">&lt;p&gt;Slackware: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;''' Door opening system V2 '''&lt;br /&gt;
&lt;br /&gt;
= Basics =&lt;br /&gt;
&lt;br /&gt;
The system has two separate pieces: opening the door, and unlocking the door, controlled by two separate mechanisms. The locking is done by an electro-mechanical door lock, and the opening/closing is done by an electro-magnetic door lock.&lt;br /&gt;
&lt;br /&gt;
== Accessing the system(s) ==&lt;br /&gt;
&lt;br /&gt;
The system can be accessed remotely in two ways: using [[Project/Fauna|fauna]] or by calling +359-24624356. The phone number is routed over VoIP(SIP) from support.bg to spitfire.&lt;br /&gt;
&lt;br /&gt;
Also, next to the door there are two buttons on the white box - a red and a green one. The red one locks the door, the green one unlocks it. If the door is open and you press the red button, it will lock 3 seconds after the door is closed. If the red button is pressed and then the door is closed for less than 3 seconds, the lock will not activate. But if the door is then closed for more than 3 seconds, the pending lock operation will be activated.&lt;br /&gt;
&lt;br /&gt;
== Using the phone ==&lt;br /&gt;
&lt;br /&gt;
When you call the phone:&lt;br /&gt;
&lt;br /&gt;
* If the door is locked:&lt;br /&gt;
** The system checks if the source phone number is in the list of allowed-to-unlock people. If not, the system hangs up.&lt;br /&gt;
** The system picks up, and using a voice similar to that of Stephen Hawking asks &amp;quot;Enter code&amp;quot;.&lt;br /&gt;
** It waits for a 6-digit pin code, which is verified in the database if it's the right PIN code for this calling number.&lt;br /&gt;
** If the entered code is wrong, the voice says &amp;quot;Wrong&amp;quot;. You have three tries, if you fail, it says &amp;quot;Fuck off&amp;quot; and hangs up.&lt;br /&gt;
** If the code entered is the right one, the voice says &amp;quot;Opening door&amp;quot;, unlocks the door and opens it.&lt;br /&gt;
*** The system then logs the door opening and unlocking, as like in the opening below.&lt;br /&gt;
* If the door is not locked:&lt;br /&gt;
** The system opens the door&lt;br /&gt;
** The system logs the door opening via [https://twitter.com/initlabkeeper twitter] and IRC (#initlab on irc.ludost.net). Using the source phone number, a textual ID is looked up in the [[Project/Fauna|Fauna]] database and logged, if the user has register its phone number.&lt;br /&gt;
&lt;br /&gt;
== Using the bulphone in front of the door ==&lt;br /&gt;
&lt;br /&gt;
* This phone is next to the front door&lt;br /&gt;
&amp;lt;gallery&amp;gt;&lt;br /&gt;
File:labphone.jpg&lt;br /&gt;
File:labphone1.jpg&lt;br /&gt;
File:labphone2.jpg&lt;br /&gt;
&amp;lt;/gallery&amp;gt;&lt;br /&gt;
&lt;br /&gt;
* You have to dial 150 to get into the system&lt;br /&gt;
* It'll ask you for you phone number, enter it and # after it&lt;br /&gt;
* Next follow the normal phone instructions (asking for a code, etc.)&lt;br /&gt;
&lt;br /&gt;
= Locking/Unlocking =&lt;br /&gt;
&lt;br /&gt;
The door uses a [http://www.lesibg.com/product.php?ProductID=369 Bulkey BKS300] electro-mechanical lock. It's connected though a [https://www.ipnetcontrol.net/bg/item-products-bg/6r8a NeoMontana NetControl 6R8A] and a [https://www.lesibg.com/product.php?ProductID=11 Bulkey BCP1 controller].&lt;br /&gt;
There are a set of macros on the NetControl device, which can be triggered using HTTP, SNMP or MQTT. It is recommended to use the macros rather than directly controlling the relays, as this allows temporary disabling the access using NetControl's web interface.&lt;br /&gt;
There is an option to override the sensor for closed door - use it with care! It may damage the electro-mechanical lock. It is intended to be used if the sensor malfunctions and the door needs to be locked remotely.&lt;br /&gt;
&lt;br /&gt;
= Opening =&lt;br /&gt;
&lt;br /&gt;
There is a set of scripts on spitfire that send a signal over HTTP to a [https://www.ipnetcontrol.net/bg/item-products-bg/8r2s1a NeoMontana NetControl 8R2S1A], to close a relay for 2 seconds. This relay supplies power to the electro-magnetic lock on the door, so the mechanism frees up the pin inside, and the door can be opened once. After opening and closing the door, the mechanism inside the electro-magnetic lock prevents future opening, until a power impulse is supplied again.&lt;br /&gt;
&lt;br /&gt;
= Settings =&lt;br /&gt;
BCP1 jumpers: JP1 - open, JP2, JP3, JP4 - closed&lt;br /&gt;
&lt;br /&gt;
6R8A settings&lt;br /&gt;
&amp;lt;gallery&amp;gt;&lt;br /&gt;
File:Screenshot from 2021-01-07 06-05-49.png&lt;br /&gt;
File:Screenshot from 2021-01-07 06-08-48.png&lt;br /&gt;
File:Screenshot from 2021-01-07 06-09-31.png&lt;br /&gt;
File:Screenshot from 2021-01-07 06-10-02.png&lt;br /&gt;
File:Screenshot from 2021-01-07 06-10-33.png&lt;br /&gt;
&amp;lt;/gallery&amp;gt;&lt;br /&gt;
Settings that are not visible, are using their factory defaults.&lt;br /&gt;
&lt;br /&gt;
= Connections =&lt;br /&gt;
* BCP1 +12V to 6R8A +12V&lt;br /&gt;
* BCP1 GND to 6R8A GND&lt;br /&gt;
* 6R8A GND to 6R8A Line 2 Terminal 1&lt;br /&gt;
* BCP1 BUT ULK to 6R8A Line 2 Terminal 2&lt;br /&gt;
* 6R8A GND to 6R8A Line 3 Terminal 1&lt;br /&gt;
* 6R8A A1 to 6R8A Line 3 Terminal 2&lt;br /&gt;
* BCP1 DQ to 6R8A A1&lt;br /&gt;
* Red button between 8R6A GND and 8R6A A2&lt;br /&gt;
* Green button between 8R6A GND and 8R6A A3&lt;br /&gt;
* Relay that shorts 8R6A GND and 8R6A A4 (dry contact) when voltage between BCP1 GND and BCP1 RED is +5V&lt;br /&gt;
* Relay that shorts 8R6A GND and 8R6A A5 (dry contact) when voltage between BCP1 GND and BCP1 GRN is +5V&lt;br /&gt;
* BKS300 Motor to BCP1 M+ and -M&lt;br /&gt;
* BKS300 Door sensor to BCP1 GND and DQ&lt;br /&gt;
&lt;br /&gt;
= Sources/links =&lt;br /&gt;
&lt;br /&gt;
* [https://www.lesibg.com/product.php?ProductID=369 Bulkey BKS300 lock]&lt;br /&gt;
* [https://www.lesibg.com/product.php?ProductID=11 Bulkey BCP1 controller]&lt;br /&gt;
* [https://www.ipnetcontrol.net/bg/item-products-bg/6r8a NeoMontana NetControl 6R8A]&lt;br /&gt;
* [https://www.ipnetcontrol.net/bg/item-products-bg/8r2s1a NeoMontana NetControl 8R2S1A]&lt;br /&gt;
* [https://github.com/initLab/fauna Fauna sources on github]&lt;br /&gt;
* [[Project/Fauna|Fauna page on this wiki]]&lt;br /&gt;
&lt;br /&gt;
[[Category:Project]]&lt;/div&gt;</summary>
		<author><name>Slackware</name></author>
	</entry>
	<entry>
		<id>https://wiki.initlab.org/index.php?title=Project/DoorSystemV2&amp;diff=502</id>
		<title>Project/DoorSystemV2</title>
		<link rel="alternate" type="text/html" href="https://wiki.initlab.org/index.php?title=Project/DoorSystemV2&amp;diff=502"/>
		<updated>2021-01-07T04:27:18Z</updated>

		<summary type="html">&lt;p&gt;Slackware: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;''' Door opening system V2 '''&lt;br /&gt;
&lt;br /&gt;
= Basics =&lt;br /&gt;
&lt;br /&gt;
The system has two separate pieces: opening the door, and unlocking the door, controlled by two separate mechanisms. The locking is done by an electro-mechanical door lock, and the opening/closing is done by an electro-magnetic door lock.&lt;br /&gt;
&lt;br /&gt;
== Accessing the system(s) ==&lt;br /&gt;
&lt;br /&gt;
The system can be accessed remotely in two ways: using [[Project/Fauna|fauna]] or by calling +359-24624356. The phone number is routed over VoIP(SIP) from support.bg to spitfire.&lt;br /&gt;
&lt;br /&gt;
Also, next to the door there are two buttons on the white box - a red and a green one. The red one locks the door, the green one unlocks it. If the door is open and you press the red button, it will lock 3 seconds after the door is closed. If the red button is pressed and then the door is closed for less than 3 seconds, the lock will not activate. But if the door is then closed for more than 3 seconds, the pending lock operation will be activated.&lt;br /&gt;
&lt;br /&gt;
== Using the phone ==&lt;br /&gt;
&lt;br /&gt;
When you call the phone:&lt;br /&gt;
&lt;br /&gt;
* If the door is locked:&lt;br /&gt;
** The system checks if the source phone number is in the list of allowed-to-unlock people. If not, the system hangs up.&lt;br /&gt;
** The system picks up, and using a voice similar to that of Stephen Hawking asks &amp;quot;Enter code&amp;quot;.&lt;br /&gt;
** It waits for a 6-digit pin code, which is verified in the database if it's the right PIN code for this calling number.&lt;br /&gt;
** If the entered code is wrong, the voice says &amp;quot;Wrong&amp;quot;. You have three tries, if you fail, it says &amp;quot;Fuck off&amp;quot; and hangs up.&lt;br /&gt;
** If the code entered is the right one, the voice says &amp;quot;Opening door&amp;quot;, unlocks the door and opens it.&lt;br /&gt;
*** The system then logs the door opening and unlocking, as like in the opening below.&lt;br /&gt;
* If the door is not locked:&lt;br /&gt;
** The system opens the door&lt;br /&gt;
** The system logs the door opening via [https://twitter.com/initlabkeeper twitter] and IRC (#initlab on irc.ludost.net). Using the source phone number, a textual ID is looked up in the [[Project/Fauna|Fauna]] database and logged, if the user has register its phone number.&lt;br /&gt;
&lt;br /&gt;
== Using the bulphone in front of the door ==&lt;br /&gt;
&lt;br /&gt;
* This phone is next to the front door&lt;br /&gt;
&amp;lt;gallery&amp;gt;&lt;br /&gt;
File:labphone.jpg&lt;br /&gt;
File:labphone1.jpg&lt;br /&gt;
File:labphone2.jpg&lt;br /&gt;
&amp;lt;/gallery&amp;gt;&lt;br /&gt;
&lt;br /&gt;
* You have to dial 150 to get into the system&lt;br /&gt;
* It'll ask you for you phone number, enter it and # after it&lt;br /&gt;
* Next follow the normal phone instructions (asking for a code, etc.)&lt;br /&gt;
&lt;br /&gt;
= Locking/Unlocking =&lt;br /&gt;
&lt;br /&gt;
The door uses a [http://www.lesibg.com/product.php?ProductID=369 Bulkey BKS300] electro-mechanical lock. It's connected though a [https://www.ipnetcontrol.net/bg/item-products-bg/6r8a NeoMontana NetControl 6R8A] and a [https://www.lesibg.com/product.php?ProductID=11 Bulkey BCP1 controller].&lt;br /&gt;
There are a set of macros on the NetControl device, which can be triggered using HTTP, SNMP or MQTT. It is recommended to use the macros rather than directly controlling the relays, as this allows temporary disabling the access using NetControl's web interface.&lt;br /&gt;
There is an option to override the sensor for closed door - use it with care! It may damage the electro-mechanical lock. It is intended to be used if the sensor malfunctions and the door needs to be locked remotely.&lt;br /&gt;
&lt;br /&gt;
= Opening =&lt;br /&gt;
&lt;br /&gt;
There is a set of scripts on spitfire that send a signal over HTTP to a [https://www.ipnetcontrol.net/bg/item-products-bg/8r2s1a NeoMontana NetControl 8R2S1A], to close a relay for 2 seconds. This relay supplies power to the electro-magnetic lock on the door, so the mechanism frees up the pin inside, and the door can be opened once. After opening and closing the door, the mechanism inside the electro-magnetic lock prevents future opening, until a power impulse is supplied again.&lt;br /&gt;
&lt;br /&gt;
= Settings =&lt;br /&gt;
BCP1 jumpers: JP1 - open, JP2, JP3, JP4 - closed&lt;br /&gt;
&lt;br /&gt;
6R8A settings&lt;br /&gt;
&amp;lt;gallery&amp;gt;&lt;br /&gt;
File:Screenshot from 2021-01-07 06-05-49.png&lt;br /&gt;
File:Screenshot from 2021-01-07 06-08-48.png&lt;br /&gt;
File:Screenshot from 2021-01-07 06-09-31.png&lt;br /&gt;
File:Screenshot from 2021-01-07 06-10-02.png&lt;br /&gt;
File:Screenshot from 2021-01-07 06-10-33.png&lt;br /&gt;
&amp;lt;/gallery&amp;gt;&lt;br /&gt;
Settings that are not visible, are using its factory defaults.&lt;br /&gt;
&lt;br /&gt;
= Connections =&lt;br /&gt;
* BCP1 +12V to 6R8A +12V&lt;br /&gt;
* BCP1 GND to 6R8A GND&lt;br /&gt;
* 6R8A GND to 6R8A Line 2 Terminal 1&lt;br /&gt;
* BCP1 BUT ULK to 6R8A Line 2 Terminal 2&lt;br /&gt;
* 6R8A GND to 6R8A Line 3 Terminal 1&lt;br /&gt;
* 6R8A A1 to 6R8A Line 3 Terminal 2&lt;br /&gt;
* BCP1 DQ to 6R8A A1&lt;br /&gt;
* Red button between 8R6A GND and 8R6A A2&lt;br /&gt;
* Green button between 8R6A GND and 8R6A A3&lt;br /&gt;
* Relay that shorts 8R6A GND and 8R6A A4 (dry contact) when voltage between BCP1 GND and BCP1 RED is +5V&lt;br /&gt;
* Relay that shorts 8R6A GND and 8R6A A5 (dry contact) when voltage between BCP1 GND and BCP1 GRN is +5V&lt;br /&gt;
* BKS300 Motor to BCP1 M+ and -M&lt;br /&gt;
* BKS300 Door sensor to BCP1 GND and DQ&lt;br /&gt;
&lt;br /&gt;
= Sources/links =&lt;br /&gt;
&lt;br /&gt;
* [https://www.lesibg.com/product.php?ProductID=369 Bulkey BKS300 lock]&lt;br /&gt;
* [https://www.lesibg.com/product.php?ProductID=11 Bulkey BCP1 controller]&lt;br /&gt;
* [https://www.ipnetcontrol.net/bg/item-products-bg/6r8a NeoMontana NetControl 6R8A]&lt;br /&gt;
* [https://www.ipnetcontrol.net/bg/item-products-bg/8r2s1a NeoMontana NetControl 8R2S1A]&lt;br /&gt;
* [https://github.com/initLab/fauna Fauna sources on github]&lt;br /&gt;
* [[Project/Fauna|Fauna page on this wiki]]&lt;br /&gt;
&lt;br /&gt;
[[Category:Project]]&lt;/div&gt;</summary>
		<author><name>Slackware</name></author>
	</entry>
	<entry>
		<id>https://wiki.initlab.org/index.php?title=Project/DoorSystemV2&amp;diff=501</id>
		<title>Project/DoorSystemV2</title>
		<link rel="alternate" type="text/html" href="https://wiki.initlab.org/index.php?title=Project/DoorSystemV2&amp;diff=501"/>
		<updated>2021-01-07T04:23:54Z</updated>

		<summary type="html">&lt;p&gt;Slackware: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;''' Door opening system V2 '''&lt;br /&gt;
&lt;br /&gt;
= Basics =&lt;br /&gt;
&lt;br /&gt;
The system has two separate pieces: opening the door, and unlocking the door, controlled by two separate mechanisms. The locking is done by an electro-mechanical door lock, and the opening/closing is done by an electro-magnetic door lock.&lt;br /&gt;
&lt;br /&gt;
== Accessing the system(s) ==&lt;br /&gt;
&lt;br /&gt;
The system can be accessed remotely in two ways: using [[Project/Fauna|fauna]] or by calling +359-24624356. The phone number is routed over VoIP(SIP) from support.bg to spitfire.&lt;br /&gt;
&lt;br /&gt;
Also, next to the door there are two buttons on the white box - a red and a green one. The red one locks the door, the green one unlocks it. If the door is open and you press the red button, it will lock 3 seconds after the door is closed. If the red button is pressed and then the door is closed for less than 3 seconds, the lock will not activate. But if the door is then closed for more than 3 seconds, the pending lock operation will be activated.&lt;br /&gt;
&lt;br /&gt;
== Using the phone ==&lt;br /&gt;
&lt;br /&gt;
When you call the phone:&lt;br /&gt;
&lt;br /&gt;
* If the door is locked:&lt;br /&gt;
** The system checks if the source phone number is in the list of allowed-to-unlock people. If not, the system hangs up.&lt;br /&gt;
** The system picks up, and using a voice similar to that of Stephen Hawking asks &amp;quot;Enter code&amp;quot;.&lt;br /&gt;
** It waits for a 6-digit pin code, which is verified in the database if it's the right PIN code for this calling number.&lt;br /&gt;
** If the entered code is wrong, the voice says &amp;quot;Wrong&amp;quot;. You have three tries, if you fail, it says &amp;quot;Fuck off&amp;quot; and hangs up.&lt;br /&gt;
** If the code entered is the right one, the voice says &amp;quot;Opening door&amp;quot;, unlocks the door and opens it.&lt;br /&gt;
*** The system then logs the door opening and unlocking, as like in the opening below.&lt;br /&gt;
* If the door is not locked:&lt;br /&gt;
** The system opens the door&lt;br /&gt;
** The system logs the door opening via [https://twitter.com/initlabkeeper twitter] and IRC (#initlab on irc.ludost.net). Using the source phone number, a textual ID is looked up in the [[Project/Fauna|Fauna]] database and logged, if the user has register its phone number.&lt;br /&gt;
&lt;br /&gt;
== Using the bulphone in front of the door ==&lt;br /&gt;
&lt;br /&gt;
* This phone is next to the front door&lt;br /&gt;
&amp;lt;gallery&amp;gt;&lt;br /&gt;
File:labphone.jpg&lt;br /&gt;
File:labphone1.jpg&lt;br /&gt;
File:labphone2.jpg&lt;br /&gt;
&amp;lt;/gallery&amp;gt;&lt;br /&gt;
&lt;br /&gt;
* You have to dial 150 to get into the system&lt;br /&gt;
* It'll ask you for you phone number, enter it and # after it&lt;br /&gt;
* Next follow the normal phone instructions (asking for a code, etc.)&lt;br /&gt;
&lt;br /&gt;
= Locking/Unlocking =&lt;br /&gt;
&lt;br /&gt;
The door uses a [http://www.lesibg.com/product.php?ProductID=369 Bulkey BKS300] electro-mechanical lock. It's connected though a [https://www.ipnetcontrol.net/bg/item-products-bg/6r8a NeoMontana NetControl 6R8A] and a [https://www.lesibg.com/product.php?ProductID=11 Bulkey BCP1 controller].&lt;br /&gt;
There are a set of macros on the NetControl device, which can be triggered using HTTP, SNMP or MQTT. It is recommended to use the macros rather than directly controlling the relays, as this allows temporary disabling the access using NetControl's web interface.&lt;br /&gt;
There is an option to override the sensor for closed door - use it with care! It may damage the electro-mechanical lock. It is intended to be used if the sensor malfunctions and the door needs to be locked remotely.&lt;br /&gt;
&lt;br /&gt;
= Opening =&lt;br /&gt;
&lt;br /&gt;
There is a set of scripts on spitfire that send a signal over HTTP to a [https://www.ipnetcontrol.net/bg/item-products-bg/8r2s1a NeoMontana NetControl 8R2S1A], to close a relay for 2 seconds. This relay supplies power to the electro-magnetic lock on the door, so the mechanism frees up the pin inside, and the door can be opened once. After opening and closing the door, the mechanism inside the electro-magnetic lock prevents future opening, until a power impulse is supplied again.&lt;br /&gt;
&lt;br /&gt;
= Settings =&lt;br /&gt;
BCP1 jumpers: JP1 - open, JP2, JP3, JP4 - closed&lt;br /&gt;
&lt;br /&gt;
6R8A settings&lt;br /&gt;
&amp;lt;gallery&amp;gt;&lt;br /&gt;
File:Screenshot from 2021-01-07 06-05-49.png&lt;br /&gt;
File:Screenshot from 2021-01-07 06-08-48.png&lt;br /&gt;
File:Screenshot from 2021-01-07 06-09-31.png&lt;br /&gt;
File:Screenshot from 2021-01-07 06-10-02.png&lt;br /&gt;
File:Screenshot from 2021-01-07 06-10-33.png&lt;br /&gt;
&amp;lt;/gallery&amp;gt;&lt;br /&gt;
Settings that are not visible, are using its factory defaults.&lt;br /&gt;
&lt;br /&gt;
= Connections =&lt;br /&gt;
* BCP1 +12V to 6R8A +12V&lt;br /&gt;
* BCP1 GND to 6R8A GND&lt;br /&gt;
* 6R8A GND to 6R8A LINE2 T1&lt;br /&gt;
* BCP1 BUT ULK to 6R8A LINE2 T2&lt;br /&gt;
* 6R8A GND to 6R8A LINE3 T1&lt;br /&gt;
* 6R8A A1 to 6R8A LINE3 T2&lt;br /&gt;
* BCP1 DQ to 6R8A A1&lt;br /&gt;
* Red button between 8R6A GND and 8R6A A2&lt;br /&gt;
* Green button between 8R6A GND and 8R6A A3&lt;br /&gt;
* Relay that shorts 8R6A GND and 8R6A A4 (dry contact) when voltage between BCP1 GND and BCP1 RED is +5V&lt;br /&gt;
* Relay that shorts 8R6A GND and 8R6A A5 (dry contact) when voltage between BCP1 GND and BCP1 GRN is +5V&lt;br /&gt;
* BKS300 Motor to BCP1 M+ and -M&lt;br /&gt;
* BKS300 Door sensor to BCP1 GND and DQ&lt;br /&gt;
&lt;br /&gt;
= Sources/links =&lt;br /&gt;
&lt;br /&gt;
* [https://www.lesibg.com/product.php?ProductID=369 Bulkey BKS300 lock]&lt;br /&gt;
* [https://www.lesibg.com/product.php?ProductID=11 Bulkey BCP1 controller]&lt;br /&gt;
* [https://www.ipnetcontrol.net/bg/item-products-bg/6r8a NeoMontana NetControl 6R8A]&lt;br /&gt;
* [https://www.ipnetcontrol.net/bg/item-products-bg/8r2s1a NeoMontana NetControl 8R2S1A]&lt;br /&gt;
* [https://github.com/initLab/fauna Fauna sources on github]&lt;br /&gt;
* [[Project/Fauna|Fauna page on this wiki]]&lt;br /&gt;
&lt;br /&gt;
[[Category:Project]]&lt;/div&gt;</summary>
		<author><name>Slackware</name></author>
	</entry>
	<entry>
		<id>https://wiki.initlab.org/index.php?title=Project/DoorSystemV2&amp;diff=500</id>
		<title>Project/DoorSystemV2</title>
		<link rel="alternate" type="text/html" href="https://wiki.initlab.org/index.php?title=Project/DoorSystemV2&amp;diff=500"/>
		<updated>2021-01-07T04:23:18Z</updated>

		<summary type="html">&lt;p&gt;Slackware: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;''' Door opening system V2 '''&lt;br /&gt;
&lt;br /&gt;
= Basics =&lt;br /&gt;
&lt;br /&gt;
The system has two separate pieces: opening the door, and unlocking the door, controlled by two separate mechanisms. The locking is done by an electro-mechanical door lock, and the opening/closing is done by an electro-magnetic door lock.&lt;br /&gt;
&lt;br /&gt;
== Accessing the system(s) ==&lt;br /&gt;
&lt;br /&gt;
The system can be accessed remotely in two ways: using [[Project/Fauna|fauna]] or by calling +359-24624356. The phone number is routed over VoIP(SIP) from support.bg to spitfire.&lt;br /&gt;
&lt;br /&gt;
Also, next to the door there are two buttons on the white box - a red and a green one. The red one locks the door, the green one unlocks it. If the door is open and you press the red button, it will lock 3 seconds after the door is closed. If the red button is pressed and then the door is closed for less than 3 seconds, the lock will not activate. But if the door is then closed for more than 3 seconds, the pending lock operation will be activated.&lt;br /&gt;
&lt;br /&gt;
== Using the phone ==&lt;br /&gt;
&lt;br /&gt;
When you call the phone:&lt;br /&gt;
&lt;br /&gt;
* If the door is locked:&lt;br /&gt;
** The system checks if the source phone number is in the list of allowed-to-unlock people. If not, the system hangs up.&lt;br /&gt;
** The system picks up, and using a voice similar to that of Stephen Hawking asks &amp;quot;Enter code&amp;quot;.&lt;br /&gt;
** It waits for a 6-digit pin code, which is verified in the database if it's the right PIN code for this calling number.&lt;br /&gt;
** If the entered code is wrong, the voice says &amp;quot;Wrong&amp;quot;. You have three tries, if you fail, it says &amp;quot;Fuck off&amp;quot; and hangs up.&lt;br /&gt;
** If the code entered is the right one, the voice says &amp;quot;Opening door&amp;quot;, unlocks the door and opens it.&lt;br /&gt;
*** The system then logs the door opening and unlocking, as like in the opening below.&lt;br /&gt;
* If the door is not locked:&lt;br /&gt;
** The system opens the door&lt;br /&gt;
** The system logs the door opening via [https://twitter.com/initlabkeeper twitter] and IRC (#initlab on irc.ludost.net). Using the source phone number, a textual ID is looked up in the [[Project/Fauna|Fauna]] database and logged, if the user has register its phone number.&lt;br /&gt;
&lt;br /&gt;
== Using the bulphone in front of the door ==&lt;br /&gt;
&lt;br /&gt;
* This phone is next to the front door&lt;br /&gt;
&amp;lt;gallery&amp;gt;&lt;br /&gt;
File:labphone.jpg&lt;br /&gt;
File:labphone1.jpg&lt;br /&gt;
File:labphone2.jpg&lt;br /&gt;
&amp;lt;/gallery&amp;gt;&lt;br /&gt;
&lt;br /&gt;
* You have to dial 150 to get into the system&lt;br /&gt;
* It'll ask you for you phone number, enter it and # after it&lt;br /&gt;
* Next follow the normal phone instructions (asking for a code, etc.)&lt;br /&gt;
&lt;br /&gt;
= Locking/Unlocking =&lt;br /&gt;
&lt;br /&gt;
The door uses a [http://www.lesibg.com/product.php?ProductID=369 Bulkey BKS300] electro-mechanical lock. It's connected though a [https://www.ipnetcontrol.net/bg/item-products-bg/6r8a NeoMontana NetControl 6R8A] and a [https://www.lesibg.com/product.php?ProductID=11 Bulkey BCP1 controller].&lt;br /&gt;
There are a set of macros on the NetControl device, which can be triggered using HTTP, SNMP or MQTT. It is recommended to use the macros rather than directly controlling the relays, as this allows temporary disabling the access using NetControl's web interface.&lt;br /&gt;
There is an option to override the sensor for closed door - use it with care! It may damage the electro-mechanical lock. It is intended to be used if the sensor malfunctions and the door needs to be locked remotely.&lt;br /&gt;
&lt;br /&gt;
= Opening =&lt;br /&gt;
&lt;br /&gt;
There is a set of scripts on spitfire that send a signal over HTTP to a [https://www.ipnetcontrol.net/bg/item-products-bg/8r2s1a NeoMontana NetControl 8R2S1A], to close a relay for 2 seconds. This relay supplies power to the electro-magnetic lock on the door, so the mechanism frees up the pin inside, and the door can be opened once. After opening and closing the door, the mechanism inside the electro-magnetic lock prevents future opening, until a power impulse is supplied again.&lt;br /&gt;
&lt;br /&gt;
= Settings =&lt;br /&gt;
BCP1 jumpers: JP1 - open, JP2, JP3, JP4 - closed&lt;br /&gt;
&lt;br /&gt;
NetControl settings&lt;br /&gt;
&amp;lt;gallery&amp;gt;&lt;br /&gt;
File:Screenshot from 2021-01-07 06-05-49.png&lt;br /&gt;
File:Screenshot from 2021-01-07 06-08-48.png&lt;br /&gt;
File:Screenshot from 2021-01-07 06-09-31.png&lt;br /&gt;
File:Screenshot from 2021-01-07 06-10-02.png&lt;br /&gt;
File:Screenshot from 2021-01-07 06-10-33.png&lt;br /&gt;
&amp;lt;/gallery&amp;gt;&lt;br /&gt;
Settings that are not visible, are using its factory defaults.&lt;br /&gt;
&lt;br /&gt;
= Connections =&lt;br /&gt;
* BCP1 +12V to 6R8A +12V&lt;br /&gt;
* BCP1 GND to 6R8A GND&lt;br /&gt;
* 6R8A GND to 6R8A LINE2 T1&lt;br /&gt;
* BCP1 BUT ULK to 6R8A LINE2 T2&lt;br /&gt;
* 6R8A GND to 6R8A LINE3 T1&lt;br /&gt;
* 6R8A A1 to 6R8A LINE3 T2&lt;br /&gt;
* BCP1 DQ to 6R8A A1&lt;br /&gt;
* Red button between 8R6A GND and 8R6A A2&lt;br /&gt;
* Green button between 8R6A GND and 8R6A A3&lt;br /&gt;
* Relay that shorts 8R6A GND and 8R6A A4 (dry contact) when voltage between BCP1 GND and BCP1 RED is +5V&lt;br /&gt;
* Relay that shorts 8R6A GND and 8R6A A5 (dry contact) when voltage between BCP1 GND and BCP1 GRN is +5V&lt;br /&gt;
* BKS300 Motor to BCP1 M+ and -M&lt;br /&gt;
* BKS300 Door sensor to BCP1 GND and DQ&lt;br /&gt;
&lt;br /&gt;
= Sources/links =&lt;br /&gt;
&lt;br /&gt;
* [https://www.lesibg.com/product.php?ProductID=369 Bulkey BKS300 lock]&lt;br /&gt;
* [https://www.lesibg.com/product.php?ProductID=11 Bulkey BCP1 controller]&lt;br /&gt;
* [https://www.ipnetcontrol.net/bg/item-products-bg/6r8a NeoMontana NetControl 6R8A]&lt;br /&gt;
* [https://www.ipnetcontrol.net/bg/item-products-bg/8r2s1a NeoMontana NetControl 8R2S1A]&lt;br /&gt;
* [https://github.com/initLab/fauna Fauna sources on github]&lt;br /&gt;
* [[Project/Fauna|Fauna page on this wiki]]&lt;br /&gt;
&lt;br /&gt;
[[Category:Project]]&lt;/div&gt;</summary>
		<author><name>Slackware</name></author>
	</entry>
	<entry>
		<id>https://wiki.initlab.org/index.php?title=Project/DoorSystemV2&amp;diff=499</id>
		<title>Project/DoorSystemV2</title>
		<link rel="alternate" type="text/html" href="https://wiki.initlab.org/index.php?title=Project/DoorSystemV2&amp;diff=499"/>
		<updated>2021-01-07T04:22:11Z</updated>

		<summary type="html">&lt;p&gt;Slackware: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;''' Door opening system V2 '''&lt;br /&gt;
&lt;br /&gt;
= Basics =&lt;br /&gt;
&lt;br /&gt;
The system has two separate pieces: opening the door, and unlocking the door, controlled by two separate mechanisms. The locking is done by an electro-mechanical door lock, and the opening/closing is done by an electro-magnetic door lock.&lt;br /&gt;
&lt;br /&gt;
== Accessing the system(s) ==&lt;br /&gt;
&lt;br /&gt;
The system can be accessed remotely in two ways: using [[Project/Fauna|fauna]] or by calling +359-24624356. The phone number is routed over VoIP(SIP) from support.bg to spitfire.&lt;br /&gt;
&lt;br /&gt;
Also, next to the door there are two buttons on the white box - a red and a green one. The red one locks the door, the green one unlocks it. If the door is open and you press the red button, it will lock 3 seconds after the door is closed. If the red button is pressed and then the door is closed for less than 3 seconds, the lock will not activate. But if the door is then closed for more than 3 seconds, the pending lock operation will be activated.&lt;br /&gt;
&lt;br /&gt;
== Using the phone ==&lt;br /&gt;
&lt;br /&gt;
When you call the phone:&lt;br /&gt;
&lt;br /&gt;
* If the door is locked:&lt;br /&gt;
** The system checks if the source phone number is in the list of allowed-to-unlock people. If not, the system hangs up.&lt;br /&gt;
** The system picks up, and using a voice similar to that of Stephen Hawking asks &amp;quot;Enter code&amp;quot;.&lt;br /&gt;
** It waits for a 6-digit pin code, which is verified in the database if it's the right PIN code for this calling number.&lt;br /&gt;
** If the entered code is wrong, the voice says &amp;quot;Wrong&amp;quot;. You have three tries, if you fail, it says &amp;quot;Fuck off&amp;quot; and hangs up.&lt;br /&gt;
** If the code entered is the right one, the voice says &amp;quot;Opening door&amp;quot;, unlocks the door and opens it.&lt;br /&gt;
*** The system then logs the door opening and unlocking, as like in the opening below.&lt;br /&gt;
* If the door is not locked:&lt;br /&gt;
** The system opens the door&lt;br /&gt;
** The system logs the door opening via [https://twitter.com/initlabkeeper twitter]. Using the source phone number, a textual ID is looked up in the [[Project/Fauna|Fauna]] database and logged, if the user has register its phone number.&lt;br /&gt;
&lt;br /&gt;
== Using the bulphone in front of the door ==&lt;br /&gt;
&lt;br /&gt;
* This phone is next to the front door&lt;br /&gt;
&amp;lt;gallery&amp;gt;&lt;br /&gt;
File:labphone.jpg&lt;br /&gt;
File:labphone1.jpg&lt;br /&gt;
File:labphone2.jpg&lt;br /&gt;
&amp;lt;/gallery&amp;gt;&lt;br /&gt;
&lt;br /&gt;
* You have to dial 150 to get into the system&lt;br /&gt;
* It'll ask you for you phone number, enter it and # after it&lt;br /&gt;
* Next follow the normal phone instructions (asking for a code, etc.)&lt;br /&gt;
&lt;br /&gt;
= Locking/Unlocking =&lt;br /&gt;
&lt;br /&gt;
The door uses a [http://www.lesibg.com/product.php?ProductID=369 Bulkey BKS300] electro-mechanical lock. It's connected though a [https://www.ipnetcontrol.net/bg/item-products-bg/6r8a NeoMontana NetControl 6R8A] and a [https://www.lesibg.com/product.php?ProductID=11 Bulkey BCP1 controller].&lt;br /&gt;
There are a set of macros on the NetControl device, which can be triggered using HTTP, SNMP or MQTT. It is recommended to use the macros rather than directly controlling the relays, as this allows temporary disabling the access using NetControl's web interface.&lt;br /&gt;
There is an option to override the sensor for closed door - use it with care! It may damage the electro-mechanical lock. It is intended to be used if the sensor malfunctions and the door needs to be locked remotely.&lt;br /&gt;
&lt;br /&gt;
= Opening =&lt;br /&gt;
&lt;br /&gt;
There is a set of scripts on spitfire that send a signal over HTTP to a [https://www.ipnetcontrol.net/bg/item-products-bg/8r2s1a NeoMontana NetControl 8R2S1A], to close a relay for 2 seconds. This relay supplies power to the electro-magnetic lock on the door, so the mechanism frees up the pin inside, and the door can be opened once. After opening and closing the door, the mechanism inside the electro-magnetic lock prevents future opening, until a power impulse is supplied again.&lt;br /&gt;
&lt;br /&gt;
= Settings =&lt;br /&gt;
BCP1 jumpers: JP1 - open, JP2, JP3, JP4 - closed&lt;br /&gt;
&lt;br /&gt;
NetControl settings&lt;br /&gt;
&amp;lt;gallery&amp;gt;&lt;br /&gt;
File:Screenshot from 2021-01-07 06-05-49.png&lt;br /&gt;
File:Screenshot from 2021-01-07 06-08-48.png&lt;br /&gt;
File:Screenshot from 2021-01-07 06-09-31.png&lt;br /&gt;
File:Screenshot from 2021-01-07 06-10-02.png&lt;br /&gt;
File:Screenshot from 2021-01-07 06-10-33.png&lt;br /&gt;
&amp;lt;/gallery&amp;gt;&lt;br /&gt;
Settings that are not visible, are using its factory defaults.&lt;br /&gt;
&lt;br /&gt;
= Connections =&lt;br /&gt;
* BCP1 +12V to 6R8A +12V&lt;br /&gt;
* BCP1 GND to 6R8A GND&lt;br /&gt;
* 6R8A GND to 6R8A LINE2 T1&lt;br /&gt;
* BCP1 BUT ULK to 6R8A LINE2 T2&lt;br /&gt;
* 6R8A GND to 6R8A LINE3 T1&lt;br /&gt;
* 6R8A A1 to 6R8A LINE3 T2&lt;br /&gt;
* BCP1 DQ to 6R8A A1&lt;br /&gt;
* Red button between 8R6A GND and 8R6A A2&lt;br /&gt;
* Green button between 8R6A GND and 8R6A A3&lt;br /&gt;
* Relay that shorts 8R6A GND and 8R6A A4 (dry contact) when voltage between BCP1 GND and BCP1 RED is +5V&lt;br /&gt;
* Relay that shorts 8R6A GND and 8R6A A5 (dry contact) when voltage between BCP1 GND and BCP1 GRN is +5V&lt;br /&gt;
* BKS300 Motor to BCP1 M+ and -M&lt;br /&gt;
* BKS300 Door sensor to BCP1 GND and DQ&lt;br /&gt;
&lt;br /&gt;
= Sources/links =&lt;br /&gt;
&lt;br /&gt;
* [https://www.lesibg.com/product.php?ProductID=369 Bulkey BKS300 lock]&lt;br /&gt;
* [https://www.lesibg.com/product.php?ProductID=11 Bulkey BCP1 controller]&lt;br /&gt;
* [https://www.ipnetcontrol.net/bg/item-products-bg/6r8a NeoMontana NetControl 6R8A]&lt;br /&gt;
* [https://www.ipnetcontrol.net/bg/item-products-bg/8r2s1a NeoMontana NetControl 8R2S1A]&lt;br /&gt;
* [https://github.com/initLab/fauna Fauna sources on github]&lt;br /&gt;
* [[Project/Fauna|Fauna page on this wiki]]&lt;br /&gt;
&lt;br /&gt;
[[Category:Project]]&lt;/div&gt;</summary>
		<author><name>Slackware</name></author>
	</entry>
	<entry>
		<id>https://wiki.initlab.org/index.php?title=Project/DoorSystemV2&amp;diff=498</id>
		<title>Project/DoorSystemV2</title>
		<link rel="alternate" type="text/html" href="https://wiki.initlab.org/index.php?title=Project/DoorSystemV2&amp;diff=498"/>
		<updated>2021-01-07T04:20:59Z</updated>

		<summary type="html">&lt;p&gt;Slackware: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;''' Door opening system V2 '''&lt;br /&gt;
&lt;br /&gt;
= Basics =&lt;br /&gt;
&lt;br /&gt;
The system has two separate pieces: opening the door, and unlocking the door, controlled by two separate mechanisms. The locking is done by an electro-mechanical door lock, and the opening/closing is done by an electro-magnetic door lock.&lt;br /&gt;
&lt;br /&gt;
== Accessing the system(s) ==&lt;br /&gt;
&lt;br /&gt;
The system can be accessed remotely in two ways: using [[Project/Fauna|fauna]] or by calling +359-24624356. The phone number is routed over VoIP(SIP) from support.bg to spitfire.&lt;br /&gt;
&lt;br /&gt;
Also, next to the door there are two buttons on the white box - a red and a green one. The red one locks the door, the green one unlocks it. If the door is open and you press the red button, it will lock 3 seconds after the door is closed. If the red button is pressed and then the door is closed for less than 3 seconds, the lock will not activate. But if the door is then closed for more than 3 seconds, the pending lock operation will be activated.&lt;br /&gt;
&lt;br /&gt;
== Using the phone ==&lt;br /&gt;
&lt;br /&gt;
When you call the phone:&lt;br /&gt;
&lt;br /&gt;
* If the door is locked:&lt;br /&gt;
** The system checks if the source phone number is in the list of allowed-to-unlock people. If not, the system hangs up.&lt;br /&gt;
** The system picks up, and using a voice similar to that of Stephen Hawking asks &amp;quot;Enter code&amp;quot;.&lt;br /&gt;
** It waits for a 6-digit pin code, which is verified in the database if it's the right PIN code for this calling number.&lt;br /&gt;
** If the entered code is wrong, the voice says &amp;quot;Wrong&amp;quot;. You have three tries, if you fail, it says &amp;quot;Fuck off&amp;quot; and hangs up.&lt;br /&gt;
** If the code entered is the right one, the voice says &amp;quot;Opening door&amp;quot;, unlocks the door and opens it.&lt;br /&gt;
*** The system then logs the door opening and unlocking, as like in the opening below.&lt;br /&gt;
* If the door is not locked:&lt;br /&gt;
** The system opens the door&lt;br /&gt;
** The system logs the door opening via [https://twitter.com/initlabkeeper twitter]. Using the source phone number, a textual ID is looked up in the [[Project/Fauna|Fauna]] database and logged, if the user has register its phone number.&lt;br /&gt;
&lt;br /&gt;
== Using the bulphone in front of the door ==&lt;br /&gt;
&lt;br /&gt;
* This phone is next to the front door&lt;br /&gt;
&amp;lt;gallery&amp;gt;&lt;br /&gt;
File:labphone.jpg&lt;br /&gt;
File:labphone1.jpg&lt;br /&gt;
File:labphone2.jpg&lt;br /&gt;
&amp;lt;/gallery&amp;gt;&lt;br /&gt;
&lt;br /&gt;
* You have to dial 150 to get into the system&lt;br /&gt;
* It'll ask you for you phone number, enter it and # after it&lt;br /&gt;
* Next follow the normal phone instructions (asking for a code, etc.)&lt;br /&gt;
&lt;br /&gt;
= Locking/Unlocking =&lt;br /&gt;
&lt;br /&gt;
The door uses a [http://www.lesibg.com/product.php?ProductID=369 Bulkey BKS300] electro-mechanical lock. It's connected though a [https://www.ipnetcontrol.net/bg/item-products-bg/6r8a NeoMontana NetControl 6R8A] and a [https://www.lesibg.com/product.php?ProductID=11 Bulkey BCP1 controller].&lt;br /&gt;
There are a set of macros on the NetControl device, which can be triggered using HTTP, SNMP or MQTT. It is recommended to use the macros rather than directly controlling the relays, as this allows temporary disabling the access using NetControl's web interface.&lt;br /&gt;
There is an option to override the sensor for closed door - use it with care! It may damage the electro-mechanical lock. It is intended to be used if the sensor malfunctions and the door needs to be locked remotely.&lt;br /&gt;
&lt;br /&gt;
= Opening =&lt;br /&gt;
&lt;br /&gt;
There is a set of scripts on spitfire that send a signal over HTTP to a [https://www.ipnetcontrol.net/bg/item-products-bg/8r2s1a NeoMontana NetControl 8R2S1A], to close a relay for 2 seconds. This relay supplies power to the electro-magnetic lock on the door, so the mechanism frees up the pin inside, and the door can be opened once. After opening and closing the door, the mechanism inside the electro-magnetic lock prevents future opening, until a power impulse is supplied again.&lt;br /&gt;
&lt;br /&gt;
= Settings =&lt;br /&gt;
BCP1 jumpers: JP1 - open, JP2, JP3, JP4 - closed&lt;br /&gt;
&lt;br /&gt;
NetControl settings&lt;br /&gt;
&amp;lt;gallery&amp;gt;&lt;br /&gt;
File:Screenshot from 2021-01-07 06-05-49.png&lt;br /&gt;
File:Screenshot from 2021-01-07 06-08-48.png&lt;br /&gt;
File:Screenshot from 2021-01-07 06-09-31.png&lt;br /&gt;
File:Screenshot from 2021-01-07 06-10-02.png&lt;br /&gt;
File:Screenshot from 2021-01-07 06-10-33.png&lt;br /&gt;
&amp;lt;/gallery&amp;gt;&lt;br /&gt;
Settings that are not visible, are using its factory defaults.&lt;br /&gt;
&lt;br /&gt;
= Connections =&lt;br /&gt;
BCP1 +12V to 6R8A +12V&lt;br /&gt;
BCP1 GND to 6R8A GND&lt;br /&gt;
6R8A GND to 6R8A LINE2 T1&lt;br /&gt;
BCP1 BUT ULK to 6R8A LINE2 T2&lt;br /&gt;
6R8A GND to 6R8A LINE3 T1&lt;br /&gt;
6R8A A1 to 6R8A LINE3 T2&lt;br /&gt;
BCP1 DQ to 6R8A A1&lt;br /&gt;
Red button between 8R6A GND and 8R6A A2&lt;br /&gt;
Green button between 8R6A GND and 8R6A A3&lt;br /&gt;
Relay that shorts 8R6A GND and 8R6A A4 (dry contact) when voltage between BCP1 GND and BCP1 RED is +5V&lt;br /&gt;
Relay that shorts 8R6A GND and 8R6A A5 (dry contact) when voltage between BCP1 GND and BCP1 GRN is +5V&lt;br /&gt;
BKS300 Motor to BCP1 M+ and -M&lt;br /&gt;
BKS300 Door sensor to BCP1 GND and DQ&lt;br /&gt;
&lt;br /&gt;
= Sources/links =&lt;br /&gt;
&lt;br /&gt;
* [https://www.lesibg.com/product.php?ProductID=369 Bulkey BKS300 lock]&lt;br /&gt;
* [https://www.lesibg.com/product.php?ProductID=11 Bulkey BCP1 controller]&lt;br /&gt;
* [https://www.ipnetcontrol.net/bg/item-products-bg/6r8a NeoMontana NetControl 6R8A]&lt;br /&gt;
* [https://www.ipnetcontrol.net/bg/item-products-bg/8r2s1a NeoMontana NetControl 8R2S1A]&lt;br /&gt;
* [https://github.com/initLab/fauna Fauna sources on github]&lt;br /&gt;
* [[Project/Fauna|Fauna page on this wiki]]&lt;br /&gt;
&lt;br /&gt;
[[Category:Project]]&lt;/div&gt;</summary>
		<author><name>Slackware</name></author>
	</entry>
	<entry>
		<id>https://wiki.initlab.org/index.php?title=File:Screenshot_from_2021-01-07_06-10-33.png&amp;diff=497</id>
		<title>File:Screenshot from 2021-01-07 06-10-33.png</title>
		<link rel="alternate" type="text/html" href="https://wiki.initlab.org/index.php?title=File:Screenshot_from_2021-01-07_06-10-33.png&amp;diff=497"/>
		<updated>2021-01-07T04:10:47Z</updated>

		<summary type="html">&lt;p&gt;Slackware: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&lt;/div&gt;</summary>
		<author><name>Slackware</name></author>
	</entry>
	<entry>
		<id>https://wiki.initlab.org/index.php?title=File:Screenshot_from_2021-01-07_06-10-02.png&amp;diff=496</id>
		<title>File:Screenshot from 2021-01-07 06-10-02.png</title>
		<link rel="alternate" type="text/html" href="https://wiki.initlab.org/index.php?title=File:Screenshot_from_2021-01-07_06-10-02.png&amp;diff=496"/>
		<updated>2021-01-07T04:10:16Z</updated>

		<summary type="html">&lt;p&gt;Slackware: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&lt;/div&gt;</summary>
		<author><name>Slackware</name></author>
	</entry>
	<entry>
		<id>https://wiki.initlab.org/index.php?title=File:Screenshot_from_2021-01-07_06-09-31.png&amp;diff=495</id>
		<title>File:Screenshot from 2021-01-07 06-09-31.png</title>
		<link rel="alternate" type="text/html" href="https://wiki.initlab.org/index.php?title=File:Screenshot_from_2021-01-07_06-09-31.png&amp;diff=495"/>
		<updated>2021-01-07T04:09:48Z</updated>

		<summary type="html">&lt;p&gt;Slackware: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&lt;/div&gt;</summary>
		<author><name>Slackware</name></author>
	</entry>
	<entry>
		<id>https://wiki.initlab.org/index.php?title=File:Screenshot_from_2021-01-07_06-08-48.png&amp;diff=494</id>
		<title>File:Screenshot from 2021-01-07 06-08-48.png</title>
		<link rel="alternate" type="text/html" href="https://wiki.initlab.org/index.php?title=File:Screenshot_from_2021-01-07_06-08-48.png&amp;diff=494"/>
		<updated>2021-01-07T04:09:11Z</updated>

		<summary type="html">&lt;p&gt;Slackware: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&lt;/div&gt;</summary>
		<author><name>Slackware</name></author>
	</entry>
	<entry>
		<id>https://wiki.initlab.org/index.php?title=Project/DoorSystemV2&amp;diff=493</id>
		<title>Project/DoorSystemV2</title>
		<link rel="alternate" type="text/html" href="https://wiki.initlab.org/index.php?title=Project/DoorSystemV2&amp;diff=493"/>
		<updated>2021-01-07T04:08:17Z</updated>

		<summary type="html">&lt;p&gt;Slackware: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;''' Door opening system V2 '''&lt;br /&gt;
&lt;br /&gt;
= Basics =&lt;br /&gt;
&lt;br /&gt;
The system has two separate pieces: opening the door, and unlocking the door, controlled by two separate mechanisms. The locking is done by an electro-mechanical door lock, and the opening/closing is done by an electro-magnetic door lock.&lt;br /&gt;
&lt;br /&gt;
== Accessing the system(s) ==&lt;br /&gt;
&lt;br /&gt;
The system can be accessed remotely in two ways: using [[Project/Fauna|fauna]] or by calling +359-24624356. The phone number is routed over VoIP(SIP) from support.bg to spitfire.&lt;br /&gt;
&lt;br /&gt;
Also, next to the door there are two buttons on the white box - a red and a green one. The red one locks the door, the green one unlocks it. If the door is open and you press the red button, it will lock 3 seconds after the door is closed. If the red button is pressed and then the door is closed for less than 3 seconds, the lock will not activate. But if the door is then closed for more than 3 seconds, the pending lock operation will be activated.&lt;br /&gt;
&lt;br /&gt;
== Using the phone ==&lt;br /&gt;
&lt;br /&gt;
When you call the phone:&lt;br /&gt;
&lt;br /&gt;
* If the door is locked:&lt;br /&gt;
** The system checks if the source phone number is in the list of allowed-to-unlock people. If not, the system hangs up.&lt;br /&gt;
** The system picks up, and using a voice similar to that of Stephen Hawking asks &amp;quot;Enter code&amp;quot;.&lt;br /&gt;
** It waits for a 6-digit pin code, which is verified in the database if it's the right PIN code for this calling number.&lt;br /&gt;
** If the entered code is wrong, the voice says &amp;quot;Wrong&amp;quot;. You have three tries, if you fail, it says &amp;quot;Fuck off&amp;quot; and hangs up.&lt;br /&gt;
** If the code entered is the right one, the voice says &amp;quot;Opening door&amp;quot;, unlocks the door and opens it.&lt;br /&gt;
*** The system then logs the door opening and unlocking, as like in the opening below.&lt;br /&gt;
* If the door is not locked:&lt;br /&gt;
** The system opens the door&lt;br /&gt;
** The system logs the door opening via [https://twitter.com/initlabkeeper twitter]. Using the source phone number, a textual ID is looked up in the [[Project/Fauna|Fauna]] database and logged, if the user has register its phone number.&lt;br /&gt;
&lt;br /&gt;
== Using the bulphone in front of the door ==&lt;br /&gt;
&lt;br /&gt;
* This phone is next to the front door&lt;br /&gt;
&amp;lt;gallery showfilename=true&amp;gt;&lt;br /&gt;
File:labphone.jpg&lt;br /&gt;
File:labphone1.jpg&lt;br /&gt;
File:labphone2.jpg&lt;br /&gt;
&amp;lt;/gallery&amp;gt;&lt;br /&gt;
&lt;br /&gt;
* You have to dial 150 to get into the system&lt;br /&gt;
* It'll ask you for you phone number, enter it and # after it&lt;br /&gt;
* Next follow the normal phone instructions (asking for a code, etc.)&lt;br /&gt;
&lt;br /&gt;
= Locking/Unlocking =&lt;br /&gt;
&lt;br /&gt;
The door uses a [http://www.lesibg.com/product.php?ProductID=369 Bulkey BKS300] electro-mechanical lock. It's connected though a [https://www.ipnetcontrol.net/bg/item-products-bg/6r8a NeoMontana NetControl 6R8A] and a [https://www.lesibg.com/product.php?ProductID=11 Bulkey BCP1 controller].&lt;br /&gt;
There are a set of macros on the NetControl device, which can be triggered using HTTP, SNMP or MQTT. It is recommended to use the macros rather than directly controlling the relays, as this allows temporary disabling the access using NetControl's web interface.&lt;br /&gt;
There is an option to override the sensor for closed door - use it with care! It may damage the electro-mechanical lock. It is intended to be used if the sensor malfunctions and the door needs to be locked remotely.&lt;br /&gt;
&lt;br /&gt;
= Opening =&lt;br /&gt;
&lt;br /&gt;
There is a set of scripts on spitfire that send a signal over HTTP to a [https://www.ipnetcontrol.net/bg/item-products-bg/8r2s1a NeoMontana NetControl 8R2S1A], to close a relay for 2 seconds. This relay supplies power to the electro-magnetic lock on the door, so the mechanism frees up the pin inside, and the door can be opened once. After opening and closing the door, the mechanism inside the electro-magnetic lock prevents future opening, until a power impulse is supplied again.&lt;br /&gt;
&lt;br /&gt;
= Connections and settings =&lt;br /&gt;
BCP1 jumpers: JP1 - open, JP2, JP3, JP4 - closed&lt;br /&gt;
&lt;br /&gt;
NetControl settings&lt;br /&gt;
&amp;lt;gallery&amp;gt;&lt;br /&gt;
File:Screenshot from 2021-01-07 06-05-49.png&lt;br /&gt;
&amp;lt;/gallery&amp;gt;&lt;br /&gt;
&lt;br /&gt;
= Sources/links =&lt;br /&gt;
&lt;br /&gt;
* [https://www.lesibg.com/product.php?ProductID=369 Bulkey BKS300 lock]&lt;br /&gt;
* [https://www.lesibg.com/product.php?ProductID=11 Bulkey BCP1 controller]&lt;br /&gt;
* [https://www.ipnetcontrol.net/bg/item-products-bg/6r8a NeoMontana NetControl 6R8A]&lt;br /&gt;
* [https://www.ipnetcontrol.net/bg/item-products-bg/8r2s1a NeoMontana NetControl 8R2S1A]&lt;br /&gt;
* [https://github.com/initLab/fauna Fauna sources on github]&lt;br /&gt;
* [[Project/Fauna|Fauna page on this wiki]]&lt;br /&gt;
&lt;br /&gt;
[[Category:Project]]&lt;/div&gt;</summary>
		<author><name>Slackware</name></author>
	</entry>
	<entry>
		<id>https://wiki.initlab.org/index.php?title=Project/DoorSystemV2&amp;diff=492</id>
		<title>Project/DoorSystemV2</title>
		<link rel="alternate" type="text/html" href="https://wiki.initlab.org/index.php?title=Project/DoorSystemV2&amp;diff=492"/>
		<updated>2021-01-07T04:07:58Z</updated>

		<summary type="html">&lt;p&gt;Slackware: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;''' Door opening system V2 '''&lt;br /&gt;
&lt;br /&gt;
= Basics =&lt;br /&gt;
&lt;br /&gt;
The system has two separate pieces: opening the door, and unlocking the door, controlled by two separate mechanisms. The locking is done by an electro-mechanical door lock, and the opening/closing is done by an electro-magnetic door lock.&lt;br /&gt;
&lt;br /&gt;
== Accessing the system(s) ==&lt;br /&gt;
&lt;br /&gt;
The system can be accessed remotely in two ways: using [[Project/Fauna|fauna]] or by calling +359-24624356. The phone number is routed over VoIP(SIP) from support.bg to spitfire.&lt;br /&gt;
&lt;br /&gt;
Also, next to the door there are two buttons on the white box - a red and a green one. The red one locks the door, the green one unlocks it. If the door is open and you press the red button, it will lock 3 seconds after the door is closed. If the red button is pressed and then the door is closed for less than 3 seconds, the lock will not activate. But if the door is then closed for more than 3 seconds, the pending lock operation will be activated.&lt;br /&gt;
&lt;br /&gt;
== Using the phone ==&lt;br /&gt;
&lt;br /&gt;
When you call the phone:&lt;br /&gt;
&lt;br /&gt;
* If the door is locked:&lt;br /&gt;
** The system checks if the source phone number is in the list of allowed-to-unlock people. If not, the system hangs up.&lt;br /&gt;
** The system picks up, and using a voice similar to that of Stephen Hawking asks &amp;quot;Enter code&amp;quot;.&lt;br /&gt;
** It waits for a 6-digit pin code, which is verified in the database if it's the right PIN code for this calling number.&lt;br /&gt;
** If the entered code is wrong, the voice says &amp;quot;Wrong&amp;quot;. You have three tries, if you fail, it says &amp;quot;Fuck off&amp;quot; and hangs up.&lt;br /&gt;
** If the code entered is the right one, the voice says &amp;quot;Opening door&amp;quot;, unlocks the door and opens it.&lt;br /&gt;
*** The system then logs the door opening and unlocking, as like in the opening below.&lt;br /&gt;
* If the door is not locked:&lt;br /&gt;
** The system opens the door&lt;br /&gt;
** The system logs the door opening via [https://twitter.com/initlabkeeper twitter]. Using the source phone number, a textual ID is looked up in the [[Project/Fauna|Fauna]] database and logged, if the user has register its phone number.&lt;br /&gt;
&lt;br /&gt;
== Using the bulphone in front of the door ==&lt;br /&gt;
&lt;br /&gt;
* This phone is next to the front door&lt;br /&gt;
&amp;lt;gallery showfilename=true&amp;gt;&lt;br /&gt;
File:labphone.jpg|labphone.jpg&lt;br /&gt;
File:labphone1.jpg|labphone1.jpg&lt;br /&gt;
File:labphone2.jpg|labphone2.jpg&lt;br /&gt;
&amp;lt;/gallery&amp;gt;&lt;br /&gt;
&lt;br /&gt;
* You have to dial 150 to get into the system&lt;br /&gt;
* It'll ask you for you phone number, enter it and # after it&lt;br /&gt;
* Next follow the normal phone instructions (asking for a code, etc.)&lt;br /&gt;
&lt;br /&gt;
= Locking/Unlocking =&lt;br /&gt;
&lt;br /&gt;
The door uses a [http://www.lesibg.com/product.php?ProductID=369 Bulkey BKS300] electro-mechanical lock. It's connected though a [https://www.ipnetcontrol.net/bg/item-products-bg/6r8a NeoMontana NetControl 6R8A] and a [https://www.lesibg.com/product.php?ProductID=11 Bulkey BCP1 controller].&lt;br /&gt;
There are a set of macros on the NetControl device, which can be triggered using HTTP, SNMP or MQTT. It is recommended to use the macros rather than directly controlling the relays, as this allows temporary disabling the access using NetControl's web interface.&lt;br /&gt;
There is an option to override the sensor for closed door - use it with care! It may damage the electro-mechanical lock. It is intended to be used if the sensor malfunctions and the door needs to be locked remotely.&lt;br /&gt;
&lt;br /&gt;
= Opening =&lt;br /&gt;
&lt;br /&gt;
There is a set of scripts on spitfire that send a signal over HTTP to a [https://www.ipnetcontrol.net/bg/item-products-bg/8r2s1a NeoMontana NetControl 8R2S1A], to close a relay for 2 seconds. This relay supplies power to the electro-magnetic lock on the door, so the mechanism frees up the pin inside, and the door can be opened once. After opening and closing the door, the mechanism inside the electro-magnetic lock prevents future opening, until a power impulse is supplied again.&lt;br /&gt;
&lt;br /&gt;
= Connections and settings =&lt;br /&gt;
BCP1 jumpers: JP1 - open, JP2, JP3, JP4 - closed&lt;br /&gt;
&lt;br /&gt;
NetControl settings&lt;br /&gt;
&amp;lt;gallery&amp;gt;&lt;br /&gt;
File:Screenshot from 2021-01-07 06-05-49.png&lt;br /&gt;
&amp;lt;/gallery&amp;gt;&lt;br /&gt;
&lt;br /&gt;
= Sources/links =&lt;br /&gt;
&lt;br /&gt;
* [https://www.lesibg.com/product.php?ProductID=369 Bulkey BKS300 lock]&lt;br /&gt;
* [https://www.lesibg.com/product.php?ProductID=11 Bulkey BCP1 controller]&lt;br /&gt;
* [https://www.ipnetcontrol.net/bg/item-products-bg/6r8a NeoMontana NetControl 6R8A]&lt;br /&gt;
* [https://www.ipnetcontrol.net/bg/item-products-bg/8r2s1a NeoMontana NetControl 8R2S1A]&lt;br /&gt;
* [https://github.com/initLab/fauna Fauna sources on github]&lt;br /&gt;
* [[Project/Fauna|Fauna page on this wiki]]&lt;br /&gt;
&lt;br /&gt;
[[Category:Project]]&lt;/div&gt;</summary>
		<author><name>Slackware</name></author>
	</entry>
	<entry>
		<id>https://wiki.initlab.org/index.php?title=Project/DoorSystemV2&amp;diff=491</id>
		<title>Project/DoorSystemV2</title>
		<link rel="alternate" type="text/html" href="https://wiki.initlab.org/index.php?title=Project/DoorSystemV2&amp;diff=491"/>
		<updated>2021-01-07T04:07:18Z</updated>

		<summary type="html">&lt;p&gt;Slackware: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;''' Door opening system V2 '''&lt;br /&gt;
&lt;br /&gt;
= Basics =&lt;br /&gt;
&lt;br /&gt;
The system has two separate pieces: opening the door, and unlocking the door, controlled by two separate mechanisms. The locking is done by an electro-mechanical door lock, and the opening/closing is done by an electro-magnetic door lock.&lt;br /&gt;
&lt;br /&gt;
== Accessing the system(s) ==&lt;br /&gt;
&lt;br /&gt;
The system can be accessed remotely in two ways: using [[Project/Fauna|fauna]] or by calling +359-24624356. The phone number is routed over VoIP(SIP) from support.bg to spitfire.&lt;br /&gt;
&lt;br /&gt;
Also, next to the door there are two buttons on the white box - a red and a green one. The red one locks the door, the green one unlocks it. If the door is open and you press the red button, it will lock 3 seconds after the door is closed. If the red button is pressed and then the door is closed for less than 3 seconds, the lock will not activate. But if the door is then closed for more than 3 seconds, the pending lock operation will be activated.&lt;br /&gt;
&lt;br /&gt;
== Using the phone ==&lt;br /&gt;
&lt;br /&gt;
When you call the phone:&lt;br /&gt;
&lt;br /&gt;
* If the door is locked:&lt;br /&gt;
** The system checks if the source phone number is in the list of allowed-to-unlock people. If not, the system hangs up.&lt;br /&gt;
** The system picks up, and using a voice similar to that of Stephen Hawking asks &amp;quot;Enter code&amp;quot;.&lt;br /&gt;
** It waits for a 6-digit pin code, which is verified in the database if it's the right PIN code for this calling number.&lt;br /&gt;
** If the entered code is wrong, the voice says &amp;quot;Wrong&amp;quot;. You have three tries, if you fail, it says &amp;quot;Fuck off&amp;quot; and hangs up.&lt;br /&gt;
** If the code entered is the right one, the voice says &amp;quot;Opening door&amp;quot;, unlocks the door and opens it.&lt;br /&gt;
*** The system then logs the door opening and unlocking, as like in the opening below.&lt;br /&gt;
* If the door is not locked:&lt;br /&gt;
** The system opens the door&lt;br /&gt;
** The system logs the door opening via [https://twitter.com/initlabkeeper twitter]. Using the source phone number, a textual ID is looked up in the [[Project/Fauna|Fauna]] database and logged, if the user has register its phone number.&lt;br /&gt;
&lt;br /&gt;
== Using the bulphone in front of the door ==&lt;br /&gt;
&lt;br /&gt;
* This phone is next to the front door&lt;br /&gt;
&amp;lt;gallery showfilename=true&amp;gt;&lt;br /&gt;
File:labphone.jpg|labphone.jpg&lt;br /&gt;
File:labphone1.jpg|labphone1.jpg&lt;br /&gt;
File:labphone2.jpg|labphone2.jpg&lt;br /&gt;
&amp;lt;/gallery&amp;gt;&lt;br /&gt;
&lt;br /&gt;
* You have to dial 150 to get into the system&lt;br /&gt;
* It'll ask you for you phone number, enter it and # after it&lt;br /&gt;
* Next follow the normal phone instructions (asking for a code, etc.)&lt;br /&gt;
&lt;br /&gt;
= Locking/Unlocking =&lt;br /&gt;
&lt;br /&gt;
The door uses a [http://www.lesibg.com/product.php?ProductID=369 Bulkey BKS300] electro-mechanical lock. It's connected though a [https://www.ipnetcontrol.net/bg/item-products-bg/6r8a NeoMontana NetControl 6R8A] and a [https://www.lesibg.com/product.php?ProductID=11 Bulkey BCP1 controller].&lt;br /&gt;
There are a set of macros on the NetControl device, which can be triggered using HTTP, SNMP or MQTT. It is recommended to use the macros rather than directly controlling the relays, as this allows temporary disabling the access using NetControl's web interface.&lt;br /&gt;
There is an option to override the sensor for closed door - use it with care! It may damage the electro-mechanical lock. It is intended to be used if the sensor malfunctions and the door needs to be locked remotely.&lt;br /&gt;
&lt;br /&gt;
= Opening =&lt;br /&gt;
&lt;br /&gt;
There is a set of scripts on spitfire that send a signal over HTTP to a [https://www.ipnetcontrol.net/bg/item-products-bg/8r2s1a NeoMontana NetControl 8R2S1A], to close a relay for 2 seconds. This relay supplies power to the electro-magnetic lock on the door, so the mechanism frees up the pin inside, and the door can be opened once. After opening and closing the door, the mechanism inside the electro-magnetic lock prevents future opening, until a power impulse is supplied again.&lt;br /&gt;
&lt;br /&gt;
= Connections and settings =&lt;br /&gt;
BCP1 jumpers: JP1 - open, JP2, JP3, JP4 - closed&lt;br /&gt;
&lt;br /&gt;
NetControl settings&lt;br /&gt;
[[File:Screenshot from 2021-01-07 06-05-49.png|200px|thumb]]&lt;br /&gt;
&lt;br /&gt;
= Sources/links =&lt;br /&gt;
&lt;br /&gt;
* [https://www.lesibg.com/product.php?ProductID=369 Bulkey BKS300 lock]&lt;br /&gt;
* [https://www.lesibg.com/product.php?ProductID=11 Bulkey BCP1 controller]&lt;br /&gt;
* [https://www.ipnetcontrol.net/bg/item-products-bg/6r8a NeoMontana NetControl 6R8A]&lt;br /&gt;
* [https://www.ipnetcontrol.net/bg/item-products-bg/8r2s1a NeoMontana NetControl 8R2S1A]&lt;br /&gt;
* [https://github.com/initLab/fauna Fauna sources on github]&lt;br /&gt;
* [[Project/Fauna|Fauna page on this wiki]]&lt;br /&gt;
&lt;br /&gt;
[[Category:Project]]&lt;/div&gt;</summary>
		<author><name>Slackware</name></author>
	</entry>
	<entry>
		<id>https://wiki.initlab.org/index.php?title=File:Screenshot_from_2021-01-07_06-05-49.png&amp;diff=490</id>
		<title>File:Screenshot from 2021-01-07 06-05-49.png</title>
		<link rel="alternate" type="text/html" href="https://wiki.initlab.org/index.php?title=File:Screenshot_from_2021-01-07_06-05-49.png&amp;diff=490"/>
		<updated>2021-01-07T04:06:10Z</updated>

		<summary type="html">&lt;p&gt;Slackware: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&lt;/div&gt;</summary>
		<author><name>Slackware</name></author>
	</entry>
	<entry>
		<id>https://wiki.initlab.org/index.php?title=Project/DoorSystemV2&amp;diff=489</id>
		<title>Project/DoorSystemV2</title>
		<link rel="alternate" type="text/html" href="https://wiki.initlab.org/index.php?title=Project/DoorSystemV2&amp;diff=489"/>
		<updated>2021-01-07T04:03:23Z</updated>

		<summary type="html">&lt;p&gt;Slackware: Created page with &amp;quot;''' Door opening system V2 '''  = Basics =  The system has two separate pieces: opening the door, and unlocking the door, controlled by two separate mechanisms. The locking is...&amp;quot;&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;''' Door opening system V2 '''&lt;br /&gt;
&lt;br /&gt;
= Basics =&lt;br /&gt;
&lt;br /&gt;
The system has two separate pieces: opening the door, and unlocking the door, controlled by two separate mechanisms. The locking is done by an electro-mechanical door lock, and the opening/closing is done by an electro-magnetic door lock.&lt;br /&gt;
&lt;br /&gt;
== Accessing the system(s) ==&lt;br /&gt;
&lt;br /&gt;
The system can be accessed remotely in two ways: using [[Project/Fauna|fauna]] or by calling +359-24624356. The phone number is routed over VoIP(SIP) from support.bg to spitfire.&lt;br /&gt;
&lt;br /&gt;
Also, next to the door there are two buttons on the white box - a red and a green one. The red one locks the door, the green one unlocks it. If the door is open and you press the red button, it will lock 3 seconds after the door is closed. If the red button is pressed and then the door is closed for less than 3 seconds, the lock will not activate. But if the door is then closed for more than 3 seconds, the pending lock operation will be activated.&lt;br /&gt;
&lt;br /&gt;
== Using the phone ==&lt;br /&gt;
&lt;br /&gt;
When you call the phone:&lt;br /&gt;
&lt;br /&gt;
* If the door is locked:&lt;br /&gt;
** The system checks if the source phone number is in the list of allowed-to-unlock people. If not, the system hangs up.&lt;br /&gt;
** The system picks up, and using a voice similar to that of Stephen Hawking asks &amp;quot;Enter code&amp;quot;.&lt;br /&gt;
** It waits for a 6-digit pin code, which is verified in the database if it's the right PIN code for this calling number.&lt;br /&gt;
** If the entered code is wrong, the voice says &amp;quot;Wrong&amp;quot;. You have three tries, if you fail, it says &amp;quot;Fuck off&amp;quot; and hangs up.&lt;br /&gt;
** If the code entered is the right one, the voice says &amp;quot;Opening door&amp;quot;, unlocks the door and opens it.&lt;br /&gt;
*** The system then logs the door opening and unlocking, as like in the opening below.&lt;br /&gt;
* If the door is not locked:&lt;br /&gt;
** The system opens the door&lt;br /&gt;
** The system logs the door opening via [https://twitter.com/initlabkeeper twitter]. Using the source phone number, a textual ID is looked up in the [[Project/Fauna|Fauna]] database and logged, if the user has register its phone number.&lt;br /&gt;
&lt;br /&gt;
== Using the bulphone in front of the door ==&lt;br /&gt;
&lt;br /&gt;
* This phone is next to the front door&lt;br /&gt;
&amp;lt;gallery showfilename=true&amp;gt;&lt;br /&gt;
File:labphone.jpg|labphone.jpg&lt;br /&gt;
File:labphone1.jpg|labphone1.jpg&lt;br /&gt;
File:labphone2.jpg|labphone2.jpg&lt;br /&gt;
&amp;lt;/gallery&amp;gt;&lt;br /&gt;
&lt;br /&gt;
* You have to dial 150 to get into the system&lt;br /&gt;
* It'll ask you for you phone number, enter it and # after it&lt;br /&gt;
* Next follow the normal phone instructions (asking for a code, etc.)&lt;br /&gt;
&lt;br /&gt;
= Locking/Unlocking =&lt;br /&gt;
&lt;br /&gt;
The door uses a [http://www.lesibg.com/product.php?ProductID=369 Bulkey BKS300] electro-mechanical lock. It's connected though a [https://www.ipnetcontrol.net/bg/item-products-bg/6r8a NeoMontana NetControl 6R8A] and a [https://www.lesibg.com/product.php?ProductID=11 Bulkey BCP1 controller].&lt;br /&gt;
There are a set of macros on the NetControl device, which can be triggered using HTTP, SNMP or MQTT. It is recommended to use the macros rather than directly controlling the relays, as this allows temporary disabling the access using NetControl's web interface.&lt;br /&gt;
There is an option to override the sensor for closed door - use it with care! It may damage the electro-mechanical lock. It is intended to be used if the sensor malfunctions and the door needs to be locked remotely.&lt;br /&gt;
&lt;br /&gt;
= Opening =&lt;br /&gt;
&lt;br /&gt;
There is a set of scripts on spitfire that send a signal over HTTP to a [https://www.ipnetcontrol.net/bg/item-products-bg/8r2s1a NeoMontana NetControl 8R2S1A], to close a relay for 2 seconds. This relay supplies power to the electro-magnetic lock on the door, so the mechanism frees up the pin inside, and the door can be opened once. After opening and closing the door, the mechanism inside the electro-magnetic lock prevents future opening, until a power impulse is supplied again.&lt;br /&gt;
&lt;br /&gt;
= Connections and settings =&lt;br /&gt;
BCP1 jumpers: JP1 - open, JP2, JP3, JP4 - closed&lt;br /&gt;
&lt;br /&gt;
NetControl settings&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
= Sources/links =&lt;br /&gt;
&lt;br /&gt;
* [https://www.lesibg.com/product.php?ProductID=369 Bulkey BKS300 lock]&lt;br /&gt;
* [https://www.lesibg.com/product.php?ProductID=11 Bulkey BCP1 controller]&lt;br /&gt;
* [https://www.ipnetcontrol.net/bg/item-products-bg/6r8a NeoMontana NetControl 6R8A]&lt;br /&gt;
* [https://www.ipnetcontrol.net/bg/item-products-bg/8r2s1a NeoMontana NetControl 8R2S1A]&lt;br /&gt;
* [https://github.com/initLab/fauna Fauna sources on github]&lt;br /&gt;
* [[Project/Fauna|Fauna page on this wiki]]&lt;br /&gt;
&lt;br /&gt;
[[Category:Project]]&lt;/div&gt;</summary>
		<author><name>Slackware</name></author>
	</entry>
	<entry>
		<id>https://wiki.initlab.org/index.php?title=File:Initlab-logo-wiki.png&amp;diff=473</id>
		<title>File:Initlab-logo-wiki.png</title>
		<link rel="alternate" type="text/html" href="https://wiki.initlab.org/index.php?title=File:Initlab-logo-wiki.png&amp;diff=473"/>
		<updated>2019-08-20T12:50:04Z</updated>

		<summary type="html">&lt;p&gt;Slackware: Slackware uploaded a new version of File:Initlab-logo-wiki.png&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&lt;/div&gt;</summary>
		<author><name>Slackware</name></author>
	</entry>
	<entry>
		<id>https://wiki.initlab.org/index.php?title=File:Initlab-logo-wiki.png&amp;diff=472</id>
		<title>File:Initlab-logo-wiki.png</title>
		<link rel="alternate" type="text/html" href="https://wiki.initlab.org/index.php?title=File:Initlab-logo-wiki.png&amp;diff=472"/>
		<updated>2019-08-20T12:49:23Z</updated>

		<summary type="html">&lt;p&gt;Slackware: Slackware uploaded a new version of File:Initlab-logo-wiki.png&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&lt;/div&gt;</summary>
		<author><name>Slackware</name></author>
	</entry>
	<entry>
		<id>https://wiki.initlab.org/index.php?title=IPv6Tunnels/ExampleConfigs&amp;diff=152</id>
		<title>IPv6Tunnels/ExampleConfigs</title>
		<link rel="alternate" type="text/html" href="https://wiki.initlab.org/index.php?title=IPv6Tunnels/ExampleConfigs&amp;diff=152"/>
		<updated>2015-06-24T07:32:26Z</updated>

		<summary type="html">&lt;p&gt;Slackware: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;''' Example configs '''&lt;br /&gt;
&lt;br /&gt;
= Linux =&lt;br /&gt;
&lt;br /&gt;
== Tunnel interface ==&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
auto marla-ipv6-spn&lt;br /&gt;
iface marla-ipv6-spn inet6 v4tunnel&lt;br /&gt;
	mode ipip&lt;br /&gt;
	ttl 225&lt;br /&gt;
	address 2001:67c:21bc:7fff:0001:2:0:2&lt;br /&gt;
	netmask 120&lt;br /&gt;
	local USER-IP-ADDRESS&lt;br /&gt;
	endpoint 79.98.105.18&lt;br /&gt;
	gateway 2001:67c:21bc:7fff:0001:2:0:1&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== quagga ==&lt;br /&gt;
&lt;br /&gt;
In this example, 2001:67c:21bc:7fff:2:1:0:1 and 2001:67c:21bc:7fff:2:1:1:1 are the remote end-points of the tunnels, 2001:67c:21bc:4::/62 is the assigned network, and 65535 is the ASN delegated to this peer.&lt;br /&gt;
&lt;br /&gt;
Basically, this configuration says &amp;quot;connect to the two peers, and filter what I announce to them to be just my own network&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
(this is actually the live configuration of initLab)&lt;br /&gt;
&lt;br /&gt;
bgpd.conf:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
!&lt;br /&gt;
router bgp 65535&lt;br /&gt;
 bgp router-id 192.168.232.1&lt;br /&gt;
 no bgp default ipv4-unicast&lt;br /&gt;
 neighbor 2001:67c:21bc:7fff:2:1:0:1 remote-as 200533&lt;br /&gt;
 neighbor 2001:67c:21bc:7fff:2:1:0:1 interface lab-ipv6-od&lt;br /&gt;
 neighbor 2001:67c:21bc:7fff:2:1:0:1 timers 3 10&lt;br /&gt;
 neighbor 2001:67c:21bc:7fff:2:1:1:1 remote-as 200533&lt;br /&gt;
 neighbor 2001:67c:21bc:7fff:2:1:1:1 interface lab-ipv6-tbc&lt;br /&gt;
 neighbor 2001:67c:21bc:7fff:2:1:1:1 timers 3 10&lt;br /&gt;
!&lt;br /&gt;
 address-family ipv6&lt;br /&gt;
 network 2001:67c:21bc:4::/62&lt;br /&gt;
 neighbor 2001:67c:21bc:7fff:2:1:0:1 activate&lt;br /&gt;
 neighbor 2001:67c:21bc:7fff:2:1:0:1 route-map external-out out&lt;br /&gt;
 neighbor 2001:67c:21bc:7fff:2:1:1:1 activate&lt;br /&gt;
 neighbor 2001:67c:21bc:7fff:2:1:1:1 route-map external-out out&lt;br /&gt;
 exit-address-family&lt;br /&gt;
!&lt;br /&gt;
ipv6 prefix-list mine seq 5 permit 2001:67c:21bc:4::/62&lt;br /&gt;
ipv6 prefix-list mine seq 15 deny any&lt;br /&gt;
!&lt;br /&gt;
route-map external-out permit 10&lt;br /&gt;
 match ipv6 address prefix-list mine&lt;br /&gt;
!&lt;br /&gt;
route-map external-out deny 20&lt;br /&gt;
!&lt;br /&gt;
&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
= Mikrotik =&lt;br /&gt;
TODO: explain config&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
/interface 6to4&lt;br /&gt;
add comment=&amp;quot;initlab ipv6&amp;quot; local-address=46.47.81.47 mtu=1480 name=\&lt;br /&gt;
    marla-ipv6-bsc remote-address=79.98.105.18&lt;br /&gt;
add comment=&amp;quot;initlab ipv6&amp;quot; local-address=46.47.81.47 mtu=1480 name=\&lt;br /&gt;
    tyler-ipv6-bst remote-address=78.128.1.18&lt;br /&gt;
/routing bgp instance&lt;br /&gt;
set default as=65531&lt;br /&gt;
/ipv6 address&lt;br /&gt;
add address=2001:67c:21bc:7fff:1:4:0:2/120 advertise=no comment=uplink-marla \&lt;br /&gt;
    interface=marla-ipv6-bsc&lt;br /&gt;
add address=2001:67c:21bc:2:4e5e:cff:feb5:3e93 comment=&amp;quot;lan&amp;quot; eui-64=\&lt;br /&gt;
    yes interface=bridge-lan&lt;br /&gt;
add address=2001:67c:21bc:7fff:2:4:1:2/120 advertise=no comment=uplink-tyler \&lt;br /&gt;
    interface=tyler-ipv6-bst&lt;br /&gt;
/routing bgp network&lt;br /&gt;
add network=2001:67c:21bc:2::/64 synchronize=no&lt;br /&gt;
/routing bgp peer&lt;br /&gt;
add address-families=ipv6 name=tyler remote-address=\&lt;br /&gt;
    2001:67c:21bc:7fff:2:4:1:1 remote-as=200533 ttl=default&lt;br /&gt;
add address-families=ipv6 name=marla remote-address=\&lt;br /&gt;
    2001:67c:21bc:7fff:1:4:0:1 remote-as=200533 ttl=default&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;/div&gt;</summary>
		<author><name>Slackware</name></author>
	</entry>
</feed>