Categoriearchief: IT-Related

Omniksol-4k-TL wifi kit

Capture inverter data yourself? Or want to process generated data? Instead of using the Omnik Portal App?

I found out that it is possible to configure the wifi kit to send TCP/UDP packets to an remote server. After that i started googling around. With some minimal data i started write a small C program.

Some other related project on the internet:

  1. GitHub – Woutrrr / Omnik-Data-Logger | Language: Python | Found first
  2. GitHub – micromys / Omnik | Language: PHP
  3. GitHub – arjenv / omnikstatus | Language: C | Found after completing my own script 🙁

Those scripts are polling the inverter each few minutes. When my research started, i found out, by configuring the web interface, that Omnik also offers the possibility to push TCP or UDP packets to an specified server. With this enabled i started testing en developing.

Reading the message (which byte means what?) was based on the GitHub projects. So someone else did the hard work 😉

Getting started… (read on)
Lees verder

ReadyNAS Pro 6 – Serial Console Port

The ReadyNAS Pro 6 has an serial port at RS232 level.

First tried to connect with an USB to TTL adapter. No luck. After some more reading and searching on the internet i just tried to connect with an USB to RS232 adapter. With positive results!

Counting from the USB ports:

  • 1 – GND  (pin 5 on RS232 / DB9 adapter)
  • 2 – TX (RX / pin 2 on RS232 / DB9 adapter)
  • 3 – RX (TX / pin 3 on RS232 / DB9 adapter)
  1. Use PuTTY or Minicom and configure it with: 9600n8.
  2. Hookup an USB keyboard to the ReadyNAS. (i use an usb port on the backside)
  3. Power On the ReadyNAS, see PuTTY of Minicom showing the device booting up ! 🙂 (printscreen follows)
  4. With the USB keyboard you can hit F3 and enter the BIOS.
  5. Screen information will by sent to PuTTY or Minicom.

Note, there is also an VGA pin header on the main board. I will try that later, because i have to order some parts. (SUB-D 15 female for an flatcable, and an 16 pin flatcable connector)

Please have a look at these sites to:

 

ReadyNAS Pro 6 - Serial pin out

ReadyNAS Pro 6 – Serial pin out

IMG_20140908_191517

ReadyNAS Pro 6 – Breakout board – NIC, USB, COM

IMG_20140908_191543

ReadyNAS Pro 6 – COM Pin header

Apache 2.4 – mod_auth_form

Still a ‘wordpress  draft’, but published already.
It should bring you to an working solution.

I prefer webserver authentication above and php/coded authentication script. This because the webserver can also protect stylesheets, javascript files and, more important, images or other attachments. Within php you can only protect the called page.

Of course, in apache, you can easily use basic authentication. But then the browser shows you an ‘static’ login window. Apache2 has now an module which helps you with form authentication. You can make in now more fancy :).

Please leave comments if necessary 🙂
note… in my test setup this is compiled and running next to system default Apache2 instance.
so 2 apache-bin directories are on the system.

Downloading and extracting Apache 2.4

# cd /opt/src/
# wget http://ftp.tudelft.nl/apache/httpd/httpd-2.4.10.tar.gz
# tar xf httpd-2.4.10.tar.gz
# cd httpd-2.4.10/

Downloaden and extracting Apache 2.4 requirements. Check requirements here

# cd srclib
# wget http://apache.mirror.triple-it.nl/apr/apr-1.5.1.tar.gz
# wget http://apache.mirror.triple-it.nl/apr/apr-util-1.5.3.tar.gz
# tar xf apr-1.5.1.tar.gz
# tar xf apr-util-1.5.3.tar.gz
# mv apr-1.5.1 apr
# mv apr-util-1.5.3 apr-util
# cd .. (/opt/src/httpd-2.4.10/)
# apt-get install libpcre3 libpcre3-dev (if not already installed)

Configuring source tree. (option –with-ssl is optional, decide for yourself if needed)

# ./configure --prefix=/opt/apache2 --with-included-apr --with-ssl --enable-auth-form

Lees verder

Energy Logger 4000 – Version 2

See the original post here.

Made it just a little more usefull 🙂 by adding ‘Export to CSV’ functionality.
Guess it needs some data formatting to. But if you understand Microsoft Office Excel or OpenOffice Calc, it is possible to create some nice lines.

energylogreader-v0.2-export

Lees verder

Reset Domain Controller password

This post is based on ‘this one‘, but now with some ‘print screens’ attached.

I know it should not be necessary :), but unfortunately it is…
And because i could not find the solutions very easily/quickly, i thought i should share it…

  1. Restart your server with an install disk in place.
  2. Boot from this setup disc
  3. Choose language and keyboard layout
  4. Click Next
  5. Click Repair you computer
  6. Choose the right (mostly one?) installation
  7. Start the ‘Command Prompt’
  8. Type: C:
  9. Type: cd Windows\System32
  10. Type: copy Utilman.exe Utilman.exe.backup
  11. Type: copy cmd.exe Utilman.exe
  12. Type: exit
  13. Click ‘Restart’
  14. Do a normal boot now
  15. When ready to login…
  16. Click the ‘Ease of access’ icon OR press [Windows] + [U]
  17. A command prompt starts now  (note that the titlebar says utilman.exe 🙂 )
  18. Type: net user “Administrator” “newpassword”
  19. Type: exit
  20. Login with the “Administrator” user and your new password “newpassword”
  21. You are done now.
  22. Do not forget to change back Utilman.exe.backup to Utilman.exe
  23. If you do not have write acces on this file now…
  24. Repeat steps 1 to 9 and then
  25. Type: copy Utilman.exe.backup Utilman.exe

Lees verder