Wifi setup for Home Assistant via COMMAND LINE

Power on HA

Have a screen and a keyboard connected

When you see the ha> prompt enter login

Then do this:

nmcli radio

radio

Now scan and list available wifi access:

nmcli device wifi rescan

nmcli device wifi

wifi list

Connect to wifi:

Use quotes around your ssid and password:

nmcli device wifi connect "YOUR_SSID" password "YOUR_WIFI_PASSWORD"

This will try to connect to your SSID and will generate a network profile for you if successfull.
The output will be similar to
"Device 'wlan0' successfully activated with...."

Then check your connections again:

nmcli con show

con show

You should be seeing at least two profiles and both green.

If you are seeing some profiles you’d like to get rid of you can remove them using:

nmcli connection delete CONNECTION_NAME

delete con

These may have two separate ip addresses on your network: one for ethernet, one for wifi.
You can check the ip addresses using:

ip addr show

Now connect to http(s)://your_wifi_ip:8123 in your browser.

Credit goes to: https://community.home-assistant.io/t/guide-connecting-pi-with-home-assistant-os-to-wifi-or-other-networking-changes/98768

How to use a rpi zero as a USB to Ethernet forwarder for Adalm Pluto

ZR6TG has written up a good tutorial on how to use a rpi zero as a USB to Ethernet forwarder for QO-100 satellite. This enables you to get rid of your active USB extender cable and makes it possible to place the pluto and dish far away from the shack. Click below to check it out.

https://www.zr6tg.co.za/2022/08/07/plutosdr-on-network-via-raspberry-pi/

D-Link DCS-2670L IP-camera with audio in Blue Iris (howto)

D-Link IP cameras are fairly OK and available IP cameras. On several of my sites I have video surveillance with AI and motion detection incl. thermal and night vision. However the D-Link DCS-2670L wide angle camera is known to be difficult to get working with Audio. Either the audio is crackling, there is no audio or there is distortion. The solution was simple: use DCS2030/21xx RTSP profile in Blue Iris

DCS-2670L setting in Blue Iris
DCS-2670L setting in Blue Iris. Audio and video works.

Slik settes boliglånsrenten

Boliglånsrenten varierer ikke direkte etter Norges Banks styringsrente. Den er på kort sikt påvirket av renten bankene kan oppnå i kapitalmarkedet. Denne renten kalles NIBOR. Over tid vil NIBOR og styringsrenten følge hverandre ganske tett. (NIBOR er en noe utdatert renteindikator og mange referanser viser nå til NOWA). Finans Norge forklarer her hvordan rentene på boliglån settes (klikk på linken): https://www.finansnorge.no/tema/bank/slik-setter-bankene-boliglansrenten/

Utlånsrenten følger NIBOR ganske tett. NIBOR følger på lengre sikt styringsrenten ganske tett.

What time series database to use for IoT systems?

While most of the tutorials online nowadays describe influxdb as a very good time series database we discovered that there are some serious considerations you should do before selecting a time series database for your next IoT project.

Here are some findings we did and questions we should have asked when we researched and selected time series databases for a new design of an IoT system:

  • To design a stable database engine suitable for production typically takes 10+ years of user feedback and experience from smaller scale testing and continuous improvements. Several of the “high ranking” databases has not been around for that long
  • mySQL and ORACLE have stable database engines by now, but they are not time series databases
  • Influx has rewritten their database engine several times over a period of few years. This may be a hint to that they are still struggling to converge on a stable database design
  • We found several very worrying statements in bug reports related to influx such as “please help, our production database is suddenly corrupt”, “the database has crashed, the backup is also corrupt. There must be something fundamentally wrong with storage”, “we have discontinued functions iusedthisextensivelyandthereisnowayaroundit() in the next release due to a complete rewrite of the database engine” etc.
  • Some databases have very inefficient compression algorithms. They will compress, but when trying to read from a compressed table, the penalty is pretty big and it goes too slow forcing you to use uncompressed tables
  • Some databases do not support writing to compressed tables (!). You have to decompress before writing. This takes a lot of time. And there is no API support to check if you try to write to a compressed table. You have to resort to parsing log messages before writing. Yes it is true.
  • Even if a database shows up high in a ranking, it may be because of it has the highest growth rate. That does not tell you much. If you look closer, you may discover that all the big guys already use more conservative and well proven time series database systems. That people reading tutorials download and install influxdb does not mean that Google, Facebook, Amazon etc uses it. It does not mean that it is the best time series database available.
  • Some databases claim to support continuous aggregates. However did you benchmark and test properly that the functions used for reading from the aggregates are stable, does not require 100% CPU, and does not crash your database engine? You may be in for a surprise.
  • Some time series databases does not have support for regular data types and regular SQL syntax. This means you will have to have TWO databases. One for configuration data and one for time series.
  • Some time series databases from the cloud vendors are extremely expensive as soon as you come up into production. Did you actually check the cost? If not you may be in for a BIG surprise.
  • Even plotting time series in a web browser may be too slow. Did you check if your time series database can decimate and deliver data to your front end in real time?

 

Hva eiendomsmeglerne ikke skjønner når de selger bolig

  • Det er aldri bilder av garasjen. Husk at for mannfolk så er garasjen en vesentlig del av boligen. Hvor mange salg og budrunder går selgere glipp av fordi det aldri er bilder av garasjen på finn.no?
  • Det er ofte ikke bilder av hobbyrom og rom i kjeller. Samme begrgunnelse som over. Mannfolk er ofte mer opptatt av dette enn mikrosement på badet.
  • Å ikke ha med selger på visning er i mange tilfelle idiotisk. Særlig når megler står inne i et hjørne med hendene i lomma eller snuta nede i mobilen og ikke sier et kvekk mens potensiell kjøper lurer på masse som ikke megler kan svare på.
  • Skal meglerne få solgt en bolig så må meglerne følge opp potensielle kjøpere å snakke med dem. Dette må gjøres på telefon. Det må stilles spørsmål, det må informeres, selger må konsulteres. Dette gjøres i for liten grad.
  • Skal megler få solgt en bolig så må megler vite noe om boligen. Ikke bare referere til prospekt. Mange meglere aner ikke noe om boligene de selger nå til dags. Skyldes dette allt for mange oppdrag, for mye press, for høy lønn? Ikke vet jeg.
  • Å ikke la potensiell kjøper snakke direkte med selger. Tenk så mye arbeid og misforståelser som kunne vært unngått. Og tenk så mye positivt om boligen (som tross alt selger kjenner best) som kunne vært formidlet. Hva er meglerne redde for? Hadde en megler som dekket seg bak personvern. For noe tull. Hvem som eier en bolig er jo offentlig informasjon. Alle står fritt til å ringe hvem man vil. Dette har ikke noe med personvern å gjøre.

Glitch protection for tube amplfiers with HV PSUs

 

OE5JFL has implemented the same idea for quenching the HV discharge current as I wrote about back in approx 2012. The idea is to short the anode PSU caps thru an inductor and a solid state device when an overcurrent event thru the tube occurs. The inductor prevents the current to raise to dangerous levels as the inductor tries to prevent the current dI/dt by building a magnetic field.

The above figure1 shows OE5JFLS thyristor circuit and 100-500uH inductor

Thyristors for voltages >1000 Volts are very expensive. For higher voltages you can use a cascade as shown above in Figure 2. I use four thyristors in series, switched by optocouplers, in my 3.5kV supply.

Figure 3 above shows a circuit for screen protection sreen in case of no anode voltage or screen overcurrent. Ig2>100mA will toggle the Flip-Flop via the optocoupler. The relay goes off and disconnects the screen. Voltage comes back after pushing the RESET key. Using the ordinary Z-diode stabilisation, overcurrent is limited to a harmless value during switching delay of the relay.

Overcurrent trip: High current in anode circuit caused by arcing or short circuit generates voltage drop across 10Ohm resistor. Flip-Flop toggles (Pin 3 low), switches off transformer and fires SCR to short HV capacitor.

For restart one has to switch off S1, the main power supply switch, and switch it on again after a few seconds. The series inductance for SCR protection is made from 10m of enamelled copper wire. Trip current is set by the 39k/8k2 voltage divider.

Before you test the circuit by producing a short, you should follow the step by step procedure, which is outlined as follows:

  1. Connect TP2 to ground, switch S1 on and short Pin 6 (CD4011) to ground. ===> Transformer must be off.
  2. S1 on, after plate voltage coming up, ground TP1 (transformer off), and then Pin 6 (CD4011). ===> SCR must fire now and ground high voltage.
  3. S1 on, ground Pin 6. ===> Transformer must be off and HV must be shorted.
  4. After successfully completing these tests, you should short the HV output with a thin wire to ground (0.12mm). This wire must not be melted when the HV-supply is shut down by the overcurrent protection.

PROCEED WITH CAUTION, THE AUTHOR IS NOT RESPONSIBLE FOR INJURY OR EQUIPMENT DAMAGE.

Credit to OE5JFL for the schematics and writeups. 

https://www.qsl.net/oe5jfl/flashover.htm

 

Solar wind event of 12.May.2021

The 12.May.2021 solar event caused major openings on 10 meters and above. I did this screen capture of the solar wind intensity to save for reference. One noteable observation is that the Bz magnetic measurement went to negative 20 for a moment. That is pretty significant.