Please login or register.

Login with username, password and session length
Advanced search  

News:

The X10Hub (PiX10Hub) is here! Created by the Community, for the Community.:)% #:)

Author Topic: ℹPiX10Hub setup Tutorial  (Read 3831 times)

Tuicemen

  • Administrator
  • Hero Member
  • ****
  • Helpful Post Rating: 263
  • Posts: 9342
  • I don't work for X10, I use it successfuly!
    • Tuicemen Software
ℹPiX10Hub setup Tutorial
« on: December 22, 2018, 09:23:13 AM »

Note: The setup for RPis other then the Zero W (PiX10Hub 2) see the next post here:.
The image has been shrank but users with slow connections or flaky internet connections should look into a download manager software like Getright ( http://getright.com ) I've used this one in the past but there are free options available.

Steps to build the image
There are two ways to install. However the best way to set up your pi is via SSH using a Windows program called puTTy ( https://putty.org/ ) as you can have your CM15A connected and there is no need for the HDMI connection

1: Once you have the image downloaded you'll need to unzip it first using 7zip ( https://www.7-zip.org/ )then use etcher ( https://www.balena.io/etcher/ ) or Win32 Disk Imager (https://sourceforge.net/projects/win32diskimager/ )   to write the image to a micro SD card (4 gigs or larger).
Note: (1) you may wish to format the SD card prior (it only takes a few seconds)
         (2)While writing the image you may see pop-ups saying that Drive x (which will be one letter higher than the Micro SD card's) needs to be formatted - just ignore and cancel those pop-ups

2: With the image writen to a SD remove then replace it in your PC (not the Pi  yet) edit the wpa_supplement.config file with notepad adding your routers SID and the password leaving the quotes.
Note: If doing the newbie #2 install you don't need to edit the wpa_supplement.config file and can proceed with the install on your Pi

3: Before you save the file be sure word-wrap is not selected in notepad, if it is, uncheck it or the file will fail.



1 SSH install (recommended)
This assumes you have installed PuTTy
1:With your pi unpowered slide the sd card into the pi
2:Plug in your CM15
3:(optional) plugin your HDMI monitor cable and turn on monitor then plug in pi
4: If you attached a HDMI monitor a splash screen will appear when it disappears  open putty on your PC.
 If a HDMI was not attached wait a few mins before proceeding.
5:With Putty open on your PC type in the Pi IP (there are several ways to discover this)  type a name in the saved sessions & click save then click Open. A new Black window will appear and possibly a white Security screen (first time window) if the white Security screen opens click yes

6:In the black terminal window it will ask for the User which is "pi" it will then ask for the password which is "x10user"
Note: the password will not echo back anything just type x10user and hit enter
7 The screen will display some text followed by the Pi configuration setup page appearing


8: you may wish to change the password (1,optional) setup your location, network (do not change the host), time zone and keyboard layout (4) then in advance (7) click Expand Filesystem .
Note: the mouse will not work in this screen only the keyboard, use the arrow keys to navigate
9: Once you expand the file system it will ask you to reboot, then once logged in will return you to the configuration screen in case you missed something, select finish again and proceed with the setup.
10:Once you have finished the  configuration setup  process info will be displayed showing the IP of the Pi and ports the software is set to by default.
You can now connect to HG and the Bridge from any browser

11: You can now close Putty

2 Newbie install using Keyboard and HDMI connection
1:with your pi unpowered slide the sd card into the pi
2:Plug in your keyboard to OTG  labelled USB
3: Plugin your HDMI monitor cable and turn on monitor then plug in pi Power to OTG marked PWR
4: A splash screen will appear when it disappears .
5: Some text may display before the config screen appears
6: Here you may wish to change the password (1, optional) setup your location, network (Do not change the host), time zone and keyboard layout (4) then in advance (7) click Expand Filesystem .
Note: the mouse will not work in this screen only the keyboard, use the arrow keys to navigate
7: Once you expand the file system it will ask you to reboot, then it will return you to the configuration screen in case you missed something, select finish again and proceed with the setup answering Yes No questions with y or n.
8:Once you have finished the  configuration setup  process info will be displayed showing the IP of the Pi and ports the software is set to by default. write this down or memorize the IP and ports
9: type  sudo shutdown 1 and wait for the light to go off on your pi (About 1 min) then unplug it
10: You can now connect your CM15 and power back up your hub by returning power
you can now connect to HG and the Bridge from any browser using the info from step 8

Current Image for the Zero W boards:
Version 1.7

Happy X10ing! >!

Since this is entirely Open Source "THE PiX10Hub AND ALL SOFTWARE IN IT IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND"
Discussion & questions for this can be posted here: http://forums.x10.com/index.php?topic=30715.0
« Last Edit: April 15, 2019, 07:55:06 AM by Tuicemen »
Logged
Please Read Topic:
General Forum Etiquette
Before you post!

Find extra info @ My forum

Tuicemen

  • Administrator
  • Hero Member
  • ****
  • Helpful Post Rating: 263
  • Posts: 9342
  • I don't work for X10, I use it successfuly!
    • Tuicemen Software
ℹ PiX10Hub 2.0 Setup Tutorial
« Reply #1 on: March 08, 2019, 10:30:38 AM »

The original PiX10Hub image was designed purely for the RPi ZeroW and won't work on most other Pi Boards.
The 2.0 image does, however there is no preconfigured X10 Setup. I'll walk through how to install that as well.
Link to the image download is bottom of this post. ;)
Note: "THE PiX10Hub AND ALL SOFTWARE IN IT IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND"
Steps to build the image
This is the same as for the original PixImage outlined in the OP

Install and setup
This is where things are different though you can still use the Putty or HDMI keyboard install option, screens may be different and there is no PiX10Hub splash screen.
The login is pi  The password is raspberry
1: Once logged in type sh /boot/HG this will start the configuration screen and copy the script for updating and installing HG.
2:Once you've changed the password, set your location info, network info and resized the SD card reboot.
3:On reboot,  and after logon, type sh installHG

4: This will take a long time depending on ones Internet connection so grab a coffee
 ;)
Note: HomeGenie will install to port 80 as this is a clean Raspbian image with no other server installed.

Installing preconfigured PiX10Hub HomeGenie configuration:
1: Download the latest preconfigured HomeGenie configuration http://tuicemen.net/downloads/Pi/pihub/PiX10Hub_config.zip
2: With Homegenie open in your web browser click configuration top left of screen then select Maintenace/Configuration and Data
3: Click on the browse button and locate the configuration file you downloaded
4: Click restore.
5: Let this run and if it appears to hang give it another min and then refresh the web page.
6: if the page fails to load then the restore has most likely took and Homegenie is now on port 8080.
7: change the address of the HG web page to the Pi IP:8080
Note: the Echo Bridge for Alexa control must also be manually installed as it is an interface which the restore fails to load if not already installed. To install the Echo Bridge see this thread for a walk through: http://forums.x10.com/index.php?topic=30670.msg179911#msg179911

Current Image for Pi boards other then the ZeroW:
Version 2.0
Questions for the 2.0 install may also be posted here:  http://forums.x10.com/index.php?topic=30715.0
 >!
« Last Edit: April 15, 2019, 07:49:52 AM by Tuicemen »
Logged
Please Read Topic:
General Forum Etiquette
Before you post!

Find extra info @ My forum
 

X10.com | About X10 | X10 Security Systems | Cameras| Package Deals
© Copyright 2014-2016 X10.com All rights reserved.