Raspberry π

Posted on
Page
of 53
  • Most 1-Wire devices have no pin for a power supply; they take their energy from the 1-Wire bus (parasitic power supply).

    This is cool, I'd never heard of it

  • Messaging you now

  • Has anyone here played around with LibreELEC or OpenELEC?

    I'm running on a Pi4, and it's just not playing nicely.

  • I just installed OSMC on an RPi3 and it seems to work really well.

    I avoided open elec because at some point in their history, someone thought it was acceptable to have ssh listening with a hardcoded root password, that you couldn't change. I'm sure they've fixed it by now but I can't be bothered to check.

    https://www.kb.cert.org/vuls/id/544527/

  • My pi hole is playing up I think. My phone and other devices keep saying they are connected to the network but with no Internet. The pi and a server are set with static ips. Everything else is dhcp. The ranges don't overlap. Any ideas how to diagnose/fix?

  • I'm sure they've fixed it by now but I can't be bothered to check.

    ssh is disabled, on install, but the password is defaulted, and you can't make a non-root ssh user and disable root from ssh without a lot of faffing.

  • Are the client devices getting an IP address from the Pi Hole?

    Check in the ip settings on the client and in the Settings...DHCP page of the PiHole admin site.

  • Yep. The pi hole is acting as the dhcp server.

  • I mean, can you verify that they are actually being given the appropriate IP address by the pi hole DHCP server (dnsmasq).

  • I've been struggling ionn and off for months trying to make an nginx reverse proxy work on my pi, so that I can have nice URLs for things like the Unifi controller, Twonky admin etc. Remembering all the port numbers is such a pain.

    I couldn't make it work.

    Then this morning I had a brain wave and realised that I don't need a full blown proxy, just a URL rewriter / redirect.

    Simple and works perfectly. Yay.

  • Nginx is the devils work

  • I used some docker preconfigured magic to get my reverse proxy working. I hope it never breaks.

  • My thermometer dropped out and in the process of sorting that I had a look at the network "log" as suggested by @cyclotron3k - ping all good. Maybe the network is fine after all and it's the command-line tweet thing that's failing. (am using twurl) I will log the output from that more carefully.

    Whilst writing this, the screen on my Surface Pro went greyscale. IT issues never end...


    1 Attachment

    • IMG_20191013_204931.jpg
  • Doesn't twitter silently drop identical consecutive tweets? Maybe try adding a timestamp to your tweets to guarantee each one is unique.

  • It was getting an IP from the pi.

    After some searching, I think it was a google connectivity check getting blocked by pihole. I've added it to the whitelist. Hopefully this will fix it but the problem has always been intermittent so I'll never know if its really fixed.

  • In my logs:

    {"errors":[{"code":187,"message":"Status is a duplicate."}]}

    Nice catch! I guess I don't need to tweet if the temperature hasn't changed. Surprised the thing is accurate enough to stay constant for 6 hours.

    Will switch it over to Thingspeak probably as recommended by @Stonehedge

    Edit: supposed to be a reply to @cyclotron3k

  • So my fix hasn't fixed it. It was nice while it lasted.

    It now seems to be limited to the 2.4 ghz network, not my 5 ghz.

  • Surprised the thing is accurate enough to stay constant for 6 hours.

    Are you controlling the heating already? Or just reporting temperature?

  • Just reporting temperature. I don't know how accurate those things are - spec says +-0.5 C but I imagine that's systematically out by some offset?

    Controlling the boiler should be easy - as I understand it the thermostat is literally just a switch that connects two nodes on the boiler which passes current when the temperature is below whatever's on the dial. I think it's 24V though so not quite as easy as just plugging something into a GPIO pin but not got that far yet.

  • You've got a fair bit of precision too, I'd be surprised if it stayed that steady? I don't know though. How did the tweets on the 13th get through, they don't have any temperature at all?

    It's not much more difficult! A nice relay will do the trick. Will you write a proper controller?

  • Yeah, I'm quite surprised. If I hammer it in the terminal I think the precision is about ~0.0625°C (16 bits per 1°C?) and it does change every few seconds so I suspect it's just fluky that it's stable for so long. Maybe me being in the flat rustling the air around is a factor too.

    How did the tweets on the 13th get through, they don't have any temperature at all?

    I just cat the /sys/devices/w1_bus_master1/28-<junk>/w1_slave file. The thermometer became detached or something at that time so the file no longer existed, and so it just tweeted nothing.

    Will you write a proper controller?

    Going to give it a good go. What is really motivating this is me being a combo of a data nerd, an eco-warrior and also the proud owner of some very warm outdoor clothing. So I'd like it to be able to switch itself off if a window is open, and also to collect some nice data on how warm it is per unit gas burnt (if/when eon finally installs my smart meters). Hopefully I can optimise the whole thing to use the bare minimum amount of gas to keep it above like, 13° or something.

  • 16 discrete levels per degree = 4 bits. 16 bits would give you 65536, which I'm sure would satisfy the data nerd in you.
    My question about the blank tweets was more on the fact that the tweets were effectively duplicates but got through? Is it time based too?
    It sounds like a nice project, and easily controllable too. Temperature sensors around the flat for distribution plots plz.

  • Clearly I didn't use my brain when I wrote that comment - yeah 4 bits, and yeah, somehow those tweets got through. Logs are lost to the aether now though so I can't see how. I will have a look at the Twitter API docs some time maybe

    Temperature around the house would be great. Could identify when I need to bleed a radiator and also get them all perfectly balanced...

  • What's the best place to pick up some Pi Zeros and what's the best way to get audio out of one (3.5mm or RCA)? I'm assuming that with the lower power draw they're much less fussy about cables and power supplies than a normal Pi.
    CHeers

  • Post a reply
    • Bold
    • Italics
    • Link
    • Image
    • List
    • Quote
    • code
    • Preview
About

Raspberry π

Posted by Avatar for photoben @photoben

Actions