Git Good @ Tech

Author: BigJay (Page 2 of 4)

Programming / Flashing Sonoff TH16 Wifi Smart switch.

Sonoff is cool little smart switch for not only home automation but for makers and hackers also, why? It’s based on ESP8266 plus it has tx/rx pins accessible and the hardware is well documented (schematics at the end of the post).

Now concerning the Sonoff original software I got it working after around 15 minutes of messing around. For some reason the app also needed my location information, sound recording,  access to SD card and so on ….. so yeah not fishy at all. After successful pairing of the switch with app everything worked fine (around 5 minutes) until the app recommended the firmware update….. aaaand its broken. After the update the device was basically just push switch. After the update no matter what I did I could not reconnect the switch to the app.

Luckily I bought it to hack it. So here we go ….

Continue reading

Raspberry Pi LAMP server v2 with Nginx and MariaDB

So why Nginx and MariaDB ?

Nginx will replace our Apache server. But why ? Short answer is performance. Bit longer answer is that Nginx is Asynchronous server which means it can perform several actions at the same time, without waiting previous to end. Nginx responds faster and consumes less RAM then Apache and this is my main reason for switching to Nginx. There are of course differences. Nginx doesn’t support .htaccess files and sometimes the are differences how Nginx handles PHP.
And MariaDB is drop in replacement to MySQL. MySQL was brought by oracle some time ago and since then the MySQL has problems with including community in development process and distrust from community for having competing products, open source MySQL and proprietary OracleDB. So the original developer of MySQL created a new projects MariaDB and it is fully open source, has strong community and is being actively developed.

Continue reading

Syncthing on Raspberry Pi 2 make your own cloud storage

Syncthing is amazing alternative to things like Dropbox or Google Drive plus you control your data. Now it works little differently than usual cloud storage solutions. Instead of one central server Syncthing uses peer to peer sharing. Also Syncthing is quite flexible for sharing files between your different devices or between people. I will not go into details of Syncthing  features and options because probably if you are already here you want to know how to install it so here goes …
Continue reading

Moving MySQL server data to external hard drive.

It’s bad idea to run MySQL server on microSD card because usually this type of application will be heavy on read/write cycles and this will effect the lifespan of the sd card. Plus depending on the type of card you are using the external hard drive will be faster. There are two ways to do it. First move files to external drive and change data dir variable or creating  symlink. We will use the latter (How to set up MySQL on Raspberry Pi).
Continue reading

Sending email with arduino and php.

Most of the currently available solutions for sending a simple email with arduino are bit complicated for my taste. Like knowing your SMTP server ip and the converting your password and username to bas64 like whaaat no way, ain’t nobody got time for that.

So here is a solution, BUT there are couple of small BUT-s you have to have access to some kind of web hosting solution. (There are plenty of free hosting solutions out there, like googling + registration = 3 min. I tested 😉 ). And the hosting solution has to have smtp enabled on php or supported (I didn’t find any that didn’t work). And I will show you how to check that.
We will use: Arduino Uno and WizNet W5100 ethernet shield.

Continue reading

« Older posts Newer posts »

© 2024 JakeMakes

Theme by Anders NorenUp ↑