• Register
    • Login
    • Search
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    1. Home
    2. Eanna
    3. Posts
    E
    • Profile
    • Following 0
    • Followers 0
    • Topics 5
    • Posts 16
    • Best 0
    • Controversial 0
    • Groups 0

    Posts made by Eanna

    • Systemctl not working

      Hi

      I am wondering is there an explained run through on how the systemd works with the raspberry pi?
      i have tried 4 similar ways but none seem to work for me. Any help would be greatly appreciated.
      I'm trying to run a python script, with NOOBS software on the PI.

      Thanks

      posted in Unipi 1 - First Generation
      E
      Eanna
    • RE: Running UniPi on reboot

      @TomasKnot I want the UniPi to run the software loaded on it once the Pi and UniPi are powered up

      posted in Unipi 1 - First Generation
      E
      Eanna
    • RE: Running UniPi on reboot

      trying to run the unipi 1.1 on reboot through python code

      posted in Unipi 1 - First Generation
      E
      Eanna
    • Running UniPi on reboot

      Hi

      I'm just wondering is there a way to run the unipi the whole time.
      I've tried all of the ways online but none seems to work

      Thanks

      posted in Unipi 1 - First Generation
      E
      Eanna
    • RE: Input change not working

      @TomasKnot
      Can I send a pulse or anything out?
      Or is this only through analogue pins?

      posted in Official API - Evok
      E
      Eanna
    • RE: Input change not working

      @TomasKnot
      Will this code change an input to an output?
      How would I do this?

      Thanks

      posted in Official API - Evok
      E
      Eanna
    • RE: Input change not working

      this is the error message I'm getting.
      has anyone seen this?

      {"status": "fail", "data": "Input is malformed; could not decode JSON object."}

      posted in Official API - Evok
      E
      Eanna
    • Input change not working

      Hi

      im getting the hang of the UniPi 1.1
      But i'm having difficulty changing the input state.
      Could anyone give a hand?

      #!/usr/bin/python3
      import http.client
      conn = http.client.HTTPConnection("192.168.173.209:8080")

      payload = "{"input":"1","circuit":5","bitvalue":"1",:"rising","rising":["string"],"counter":"0","mode":"Simple","modes":["Simple"],"ds_mode":"string (optional)","ds_modes":["string"],"glob_dev_id":"number (required)","alias":"string (optional)"}"

      payload = "{"input":"5"""bitvalue: 1""}"

      headers = { 'content-type': "application/json" }

      conn.request("POST", "/json/input/circuit: 1", payload, headers)

      res = conn.getresponse()
      data = res.read()

      print(data.decode("utf-8"))

      this is my code.

      posted in Official API - Evok
      E
      Eanna
    • RE: UniPi changing relay state

      @TomasKnot
      Should that ip address work for all or should i use the pi's ip address?

      posted in Unipi 1 - First Generation
      E
      Eanna
    • RE: UniPi changing relay state

      @TomasKnot said in UniPi changing relay state:

      "YOUR-NEURON-IP:PORT/rest/all"

      Hi Tomas

      Im using the unipi 1.1. does that still work with the
      "YOUR-NEURON-IP:PORT/rest/all" ?

      thanks again

      posted in Unipi 1 - First Generation
      E
      Eanna
    • RE: Reading input state

      Hi
      Im looking for a working example preferably.
      Not sure what goes into the gaps on the examples

      posted in Official API - Evok
      E
      Eanna
    • Reading input state

      Hi all,

      I'm fairly new to using UniPi.
      What code do I have to add to the Evok sample code to get it working?

      Thanks.
      Eanna

      posted in Official API - Evok
      E
      Eanna
    • RE: UniPi changing relay state

      How do I know which circuit is numbered in which way?
      Is there examples online?

      posted in Unipi 1 - First Generation
      E
      Eanna
    • RE: UniPi changing relay state

      @TomasKnot have you any examples of the code? I cant find any online that I can understand.
      Thanks

      posted in Unipi 1 - First Generation
      E
      Eanna
    • RE: UniPi changing relay state

      Hi Tomas

      Im using Python to programme it.

      this is my code:

      payload = "{1}"
      
      conn.request("GET", "/json/relay/%7Bcircuit%7D", payload)
      
      res = conn.getresponse()
      data = res.read()
      
      print(data.decode("utf-8"))
      
      ##payload = "{\"1\":\"0\",\"timeout\":\"0\",\"mode\":\"string (optional)\",\"pwm_freq\":\"2000",\"pwm_duty\":\"50\",\"alias\":\"string (optional)\"}"
      ##headers = { 'content-type': "application/json" }
      ##
      ##conn.request("POST", "/json/relay/%7Bcircuit%7D", payload, headers)
      ##
      ##res = conn.getresponse()
      ##data = res.read()
      ##
      ##print(data.decode("utf-8"))
      
      payload = "{2}"
      
      conn.request("GET", "/json/relay/%7Bcircuit%7D", payload)
      
      res = conn.getresponse()
      data = res.read()
      
      print(data.decode("utf-8"))
      
      ##payload = "{\"2\":\"0\",\"timeout\":\"0\",\"mode\":\"string (optional)\",\"pwm_freq\":\"2000",\"pwm_duty\":\"50\",\"alias\":\"string (optional)\"}"
      ##headers = { 'content-type': "application/json" }
      ##
      ##conn.request("POST", "/json/relay/%7Bcircuit%7D", payload, headers)
      ##
      ##res = conn.getresponse()
      ##data = res.read()
      ##
      ##print(data.decode("utf-8"))
      

      I have the changing state code commented out because its giving me errors.

      posted in Unipi 1 - First Generation
      E
      Eanna
    • UniPi changing relay state

      Hi

      Sorry I'm new to this and trying to set up the UniPi with my raspberry Pi but i cant get the relays to change state. I cant see what im doing wrong I've followed all instructions.
      Any help greatly appreciated

      Thanks.

      posted in Unipi 1 - First Generation
      E
      Eanna