Pārlūkot izejas kodu

add wake on lan to list of neuron

nico 8 gadi atpakaļ
vecāks
revīzija
66945c6b29
2 mainītis faili ar 6 papildinājumiem un 21 dzēšanām
  1. 2 1
      Docs/neuron_list.md
  2. 4 20
      test.py

+ 2 - 1
Docs/neuron_list.md

@@ -4,7 +4,7 @@ A neuron is a module that will perform some actions attached to an order. You ca
 
 | Name                                               | Description                                                                             | Used to sort      |
 |----------------------------------------------------|-----------------------------------------------------------------------------------------|-------------------|
-| [ansible_task](../neurons/ansible_task/)           | Run an ansible playbook                                                                 | ansible_task      |
+| [ansible_playbook](../neurons/ansible_playbook/)   | Run an ansible playbook                                                                 | ansible_task      |
 | [gmail_checker](../neurons/gmail_checker/)         | Get the number of unread email and their subjects from a gmail account                  | gmail_checker     |
 | [kill_switch](../neurons/kill_switch/)             | Stop Kalliope process                                                                   | kill_switch       |
 | [neurotransmitter](../neurons/neurotransmitter/)   | Link synapse together                                                                   | neurotransmitter  |
@@ -16,5 +16,6 @@ A neuron is a module that will perform some actions attached to an order. You ca
 | [systemdate](../neurons/systemdate/)               | Give the local system date and time                                                     | systemdate        |
 | [tasker_autoremote](../neurons/tasker_autoremote/) | Send a message to Android tasker app                                                    | tasker_autoremote |
 | [twitter](../neurons/twitter/)                     | Send a Twit from kalliope                                                               | twitter           |
+| [wake_on_lan](../neurons/wake_on_lan/)             | Wake on lan a computer                                                                  | Wake on lan       |
 | [wikipedia](../neurons/wikipedia/)                 | Search for a page on Wikipedia                                                          | wikipedia         |
 

+ 4 - 20
test.py

@@ -10,24 +10,8 @@ logger.setLevel(logging.DEBUG)
 
 
 brain = BrainLoader.get_brain()
-
-brain2 = BrainLoader.get_brain()
-brain3 = BrainLoader.get_brain()
-brain4 = BrainLoader.get_brain()
-
-
-print brain is brain2
-print brain is brain3
-print brain is brain4
-print brain4 is brain2
-
-set = SettingLoader.get_settings()
-set2 = SettingLoader.get_settings()
-set3 = SettingLoader.get_settings()
-set4 = SettingLoader.get_settings()
-
-print set is set2
-print set is set3
-print set is set4
-print set3 is set2
+print brain.brain_yaml
+for synapse in brain.synapses:
+    print "test"
+    print synapse.name