Ir transmitter

Posted on
Thu Jan 31, 2019 7:47 pm
kw123 offline
User avatar
Posts: 6584
Joined: May 12, 2013
Location: Dallas, TX

Re: Ir transmitter

I need the config (screen shot) & RPIconfig(*) file

Also did you push “all files” to the rpi?

The ssd has an older version of the software. The plugin will
Push the latest to the rpi.


Sent from my iPhone using Tapatalk

(*)
/Library/Application Support/Perceptive Automation/Indigo 7.2/Preferences/Plugins/com.karlwachs.piBeacon/RPIconf
and
/Library/Application Support/Perceptive Automation/Indigo 7.2/Preferences/Plugins/com.karlwachs.piBeacon/interfaceFiles/parameters.x ( x= # of your RPI)

those files contain passwords!!

Posted on
Fri Feb 01, 2019 1:04 pm
kennybroh offline
Posts: 489
Joined: Dec 13, 2009
Location: Baltimore

Re: Ir transmitter

If you mean "send ALL files and reboot" I clicked that and closed the window but nothing happened.

Here is a sanitized version of the ind.pref file:
Code: Select all
<?xml version="1.0" encoding="UTF-8"?>
<Prefs type="dict">
   <GPIOpwm type="string">1</GPIOpwm>
   <IndigoOrSocket type="string">socket</IndigoOrSocket>
   <SensorsLabel type="string"></SensorsLabel>
   <acceptJunkBeacons type="string">0</acceptJunkBeacons>
   <acceptNewiBeacons type="string">-999</acceptNewiBeacons>
   <authentication type="string">digest</authentication>
   <automaticRPIReplacement type="bool">false</automaticRPIReplacement>
   <beaconPositionsUpdateTime type="string">-1</beaconPositionsUpdateTime>
   <beaconPositionsdeltaDistanceMinForImage type="string">10</beaconPositionsdeltaDistanceMinForImage>
   <beaconPositionsimageCompress type="bool">true</beaconPositionsimageCompress>
   <beaconPositionsimageDotsY type="string">600</beaconPositionsimageDotsY>
   <beaconPositionsimageOutfile type="string"></beaconPositionsimageOutfile>
   <beaconPositionsimageShowCaption type="string"></beaconPositionsimageShowCaption>
   <beaconPositionsimageShowRPIs type="string">0</beaconPositionsimageShowRPIs>
   <beaconPositionsimageText type="string">text on Top</beaconPositionsimageText>
   <beaconPositionsimageTextColor type="string">#000000</beaconPositionsimageTextColor>
   <beaconPositionsimageTextPos type="string">0,0</beaconPositionsimageTextPos>
   <beaconPositionsimageTextRotation type="string">0</beaconPositionsimageTextRotation>
   <beaconPositionsimageTextSize type="string">12</beaconPositionsimageTextSize>
   <beaconPositionsimageXscale type="string">20</beaconPositionsimageXscale>
   <beaconPositionsimageYscale type="string">30</beaconPositionsimageYscale>
   <beaconPositionsimageZlevels type="string">0,5</beaconPositionsimageZlevels>
   <beaconShowExpiredBeacons type="string">0</beaconShowExpiredBeacons>
   <debugBC type="bool">false</debugBC>
   <debugBLE type="bool">false</debugBLE>
   <debugBeaconData type="bool">false</debugBeaconData>
   <debugCAR type="bool">false</debugCAR>
   <debugDevMgmt type="bool">false</debugDevMgmt>
   <debugFing type="bool">false</debugFing>
   <debugLogic type="bool">false</debugLogic>
   <debugOfflineRPI type="bool">false</debugOfflineRPI>
   <debugOutputDevice type="bool">false</debugOutputDevice>
   <debugPlotPositions type="bool">false</debugPlotPositions>
   <debugRPIBEACON type="string">0</debugRPIBEACON>
   <debugRPIBLE type="string">0</debugRPIBLE>
   <debugRPICALL type="string">0</debugRPICALL>
   <debugRPIOUTPUT type="string">0</debugRPIOUTPUT>
   <debugRPISENSOR type="string">0</debugRPISENSOR>
   <debugRPImystuff type="string">0</debugRPImystuff>
   <debugSensorData type="bool">false</debugSensorData>
   <debugSocket type="bool">false</debugSocket>
   <debugSocketRPI type="bool">false</debugSocketRPI>
   <debugSpecial type="bool">false</debugSpecial>
   <debugUpdateRPI type="bool">false</debugUpdateRPI>
   <debugall type="bool">false</debugall>
   <deleteHistoryAfterSeconds type="string">86400</deleteHistoryAfterSeconds>
   <distanceUnits type="string">1.0</distanceUnits>
   <do_cProfile type="string">on/off/print</do_cProfile>
   <enableBroadCastEvents type="string"></enableBroadCastEvents>
   <enableFING type="string">0</enableFING>
   <enableRebootRPIifNoMessages type="string">1</enableRebootRPIifNoMessages>
   <expTimeMultiplier type="string">2</expTimeMultiplier>
   <expectTimeout type="string">15</expectTimeout>
   <folderLabel type="string"></folderLabel>
   <groupCountNameDefault type="string">iBeacon_Count_</groupCountNameDefault>
   <iBeaconFolderName type="string">Pi_Beacons_new</iBeaconFolderName>
   <iBeaconFolderNameVariables type="string">piBeacons</iBeaconFolderNameVariables>
   <ibeaconNameDefault type="string">iBeacon_</ibeaconNameDefault>
   <indigoInputPORT type="string">12087</indigoInputPORT>
   <infoLabel1 type="string"></infoLabel1>
   <infoLabel22 type="string"></infoLabel22>
   <infoLabel227 type="string"></infoLabel227>
   <infoLabel33 type="string"></infoLabel33>
   <infoLabel44 type="string"></infoLabel44>
   <infoLabel97 type="string"></infoLabel97>
   <infoLabel99 type="string"></infoLabel99>
   <infoLabelwifi type="string"></infoLabelwifi>
   <key_mgmt type="string">WPA-PSK</key_mgmt>
   <lightningNumerOfSensors type="string"></lightningNumerOfSensors>
   <lightningTimeWindow type="string">10</lightningTimeWindow>
   <logFileActive2 type="string">standard</logFileActive2>
   <maxSocksErrorTime type="string">600</maxSocksErrorTime>
   <myIpNumber type="string">192.168.86.30</myIpNumber>
   <passwordOfServer type="string">xxxxxx</passwordOfServer>
   <piUpdateWindow type="string">0</piUpdateWindow>
   <portOfServer type="string">8176</portOfServer>
   <posLabel type="string"></posLabel>
   <posLabel2 type="string"></posLabel2>
   <posLabelZlevel type="string"></posLabelZlevel>
   <pressureUnits type="string">Pascal</pressureUnits>
   <rPiCommandPORT type="string">9999</rPiCommandPORT>
   <rainDigits type="string">1</rainDigits>
   <rainUnits type="string">mm</rainUnits>
   <rebootHour type="string">1</rebootHour>
   <rebootSeconds type="string">9999999999999</rebootSeconds>
   <rebootWatchDogTime type="string">-1</rebootWatchDogTime>
   <removeJunkBeacons type="string">1</removeJunkBeacons>
   <restartBLEifNoConnect type="string">1</restartBLEifNoConnect>
   <secToDown type="string">80</secToDown>
   <sendAfterSeconds type="string">60</sendAfterSeconds>
   <sendFullUUID type="string">0</sendFullUUID>
   <setClostestRPItextToBlank type="string">1</setClostestRPItextToBlank>
   <simpleSeparator22 type="string"></simpleSeparator22>
   <simpleSeparator33 type="string"></simpleSeparator33>
   <simpleSeparator57 type="string"></simpleSeparator57>
   <simpleSeparatorSensors type="string"></simpleSeparatorSensors>
   <simpleSeparatorfoldernames type="string"></simpleSeparatorfoldernames>
   <simpleSeparatorplotbeacons type="string"></simpleSeparatorplotbeacons>
   <speedUnits type="string">1.0</speedUnits>
   <tempDigits type="string">1</tempDigits>
   <tempUnits type="string">Celsius</tempUnits>
   <txPowerCutoffDefault type="string">999</txPowerCutoffDefault>
   <userIdOfServer type="string"></userIdOfServer>
   <wifiOFF type="string">off</wifiOFF>
   <wifiPassword type="string">xxxxxxx</wifiPassword>
   <wifiSSID type="string">KBFHxxx</wifiSSID>
</Prefs>


and here is the parameters file:

Code: Select all
{
  "BLEserial": "sequential",
  "GPIONumberAfterBoot1": "-1",
  "GPIONumberAfterBoot2": "-1",
  "GPIOTypeAfterBoot1": "off",
  "GPIOTypeAfterBoot2": "off",
  "GPIOpwm": "1",
  "IPnumberOfRPI": "192.168.86.72",
  "IndigoOrSocket": "socket",
  "acceptJunkBeacons": "0",
  "acceptNewiBeacons": -999,
  "authentication": "digest",
  "batteryCapacitySeconds": 5,
  "chargeTimeForMaxCapacity": 7200,
  "debugRPI": {
    "debugRPIBEACON": 0,
    "debugRPIBLE": 0,
    "debugRPICALL": 0,
    "debugRPIOUTPUT": 0,
    "debugRPISENSOR": 0,
    "debugRPImystuff": 0
  },
  "deleteHistoryAfterSeconds": 86400,
  "deltaChangedSensor": 5,
  "distanceUnits": "1.0",
  "enableRebootCheck": "restartLoop,-",
  "enableiBeacons": "1",
  "indigoInputPORT": 12087,
  "ipOfServer": "192.168.86.30",
  "minPinActiveTimeForShutdown": 99999999999,
  "myPiNumber": "0",
  "networkType": "fullIndigo",
  "output": {},
  "passwordOfServer": “xxxx”,
  "portOfServer": "8176",
  "pressureUnits": "Pascal",
  "rPiCommandPORT": 9999,
  "rPiRestartCommand": "",
  "rebootHour": 1,
  "rebootWatchDogTime": "-1",
  "restartBLEifNoConnect": true,
  "sendAfterSeconds": "60",
  "sendFullUUID": "0",
  "sendToIndigoSecs": 90,
  "sensorList": "",
  "sensorRefreshSecs": 20.0,
  "sensors": {},
  "shutDownPinOutput": -1,
  "shutDownPinVetoOutput": -1,
  "shutdownInputPin": -1,
  "sleepAfterBoot": "10",
  "tempUnits": "Celsius",
  "timeStamp": "2019-02-01-14:00:35",
  "useRTC": "",
  "useRamDiskForLogfiles": "0",
  "userIdOfServer": "",
  "wifiOFF": "off"
}


I'll send the screen shot in a little while.

Posted on
Fri Feb 01, 2019 1:30 pm
kennybroh offline
Posts: 489
Joined: Dec 13, 2009
Location: Baltimore

Re: Ir transmitter

Here's the screen shot....
Attachments
config.jpg
config.jpg (427.87 KiB) Viewed 482 times

Posted on
Fri Feb 01, 2019 6:05 pm
kw123 offline
User avatar
Posts: 6584
Joined: May 12, 2013
Location: Dallas, TX

Re: Ir transmitter

you need to fill out : userid for indigo web server and indigo password (in config)

Although it is not used when you use direct socket comm, but it still checks if the
"passwordOfServer": “xxxx”,
"userIdOfServer": "",
are set.
in config: set comm to indigo web, fill out userid and passwd, and set back to socket comm.

then push all to your rpi.

then
ssh pi@ip
cd pibeacon
ps -ef | grep .py
sudo python master.py
.... wait 1 min
ps -ef | grep .py

and post result.

Karl

Posted on
Sat Feb 02, 2019 6:50 am
kennybroh offline
Posts: 489
Joined: Dec 13, 2009
Location: Baltimore

Re: Ir transmitter

It was filled in. I just blanked it out when I sent the file to the forum so that info wasn't public.

Posted on
Sat Feb 02, 2019 9:15 am
kw123 offline
User avatar
Posts: 6584
Joined: May 12, 2013
Location: Dallas, TX

Re: Ir transmitter

Ok.
Did you blank/ xxx the passed etc in the rpi config file
It looks as if the rpi did not get the new files


Could you do the other commands mrntiined ?




Sent from my iPhone using Tapatalk

Posted on
Sun Feb 03, 2019 7:40 am
kennybroh offline
Posts: 489
Joined: Dec 13, 2009
Location: Baltimore

Re: Ir transmitter

I just blanked it out in photoshop from the screen shot of the plugin config and in the copy of the file. Not in the original. I agree the pi didn't get the files. When I clicked push all files and reboot, nothing happened.

I will try the commands. I assume I do that from the terminal on the server, not the pi.

Posted on
Sun Feb 03, 2019 8:08 am
kw123 offline
User avatar
Posts: 6584
Joined: May 12, 2013
Location: Dallas, TX

Re: Ir transmitter

ssh pi@ip# of pi
Enter password of pi


You can do that from any box you have. As long as you get to the rpi.


but if the files do not get to the rpi the problem is before that..

the userid password and IP of the RPI are correct in initial setup of RPI? and it is switch ON?


Karl

Sent from my iPhone using Tapatalk

Posted on
Sun Feb 03, 2019 10:21 am
kennybroh offline
Posts: 489
Joined: Dec 13, 2009
Location: Baltimore

Re: Ir transmitter

Oh, yes. The pi is running just fine by itself, and I can see it on my network with the correct IP.. I actually reserved that address for it so it won't change.

I will run those commands shortly.

Thanks for your help.

(BTW, I assume it makes no difference that the pi boots into the graphical interface.)

Posted on
Sun Feb 03, 2019 11:32 am
kw123 offline
User avatar
Posts: 6584
Joined: May 12, 2013
Location: Dallas, TX

Re: Ir transmitter

"(BTW, I assume it makes no difference that the pi boots into the graphical interface.)" ??: In principle not, only question of resources.

but if the RPI does not get the files, checking the RPI does not help a lot...

this is going on tooo long (lots of ping/pong) , can we do an online session w teamviewer.. that should clarify it pretty quickly

Karl

Posted on
Sun Feb 03, 2019 1:00 pm
kennybroh offline
Posts: 489
Joined: Dec 13, 2009
Location: Baltimore

Re: Ir transmitter

Here's what the command returned:

Code: Select all
pi@KBFPi_1:~/pibeacon $ ps -ef | grep .py
nobody     316     1  0 13:47 ?        00:00:00 /usr/sbin/thd --triggers /etc/triggerhappy/triggers.d/ --socket /run/thd.socket --user nobody --deviceglob /dev/input/event*
root      2260     1  0 13:57 pts/0    00:00:00 python master.py
root      2511     1  0 13:57 pts/0    00:00:00 /usr/bin/python /home/pi/pibeacon/copyToTemp.py
root      2590     1  0 13:57 pts/0    00:00:00 /usr/bin/python /home/pi/pibeacon/receiveGPIOcommands.py 9999
pi        2608  2129  0 13:59 pts/0    00:00:00 grep --color=auto .py
pi@KBFPi_1:~/pibeacon $

Posted on
Sun Feb 03, 2019 1:12 pm
kennybroh offline
Posts: 489
Joined: Dec 13, 2009
Location: Baltimore

Re: Ir transmitter

Then I reloaded the plugin, and voila:
Attachments
Screen Shot 2019-02-03 at 2.10.51 PM.png
Screen Shot 2019-02-03 at 2.10.51 PM.png (75.96 KiB) Viewed 373 times

Posted on
Sun Feb 03, 2019 1:27 pm
kw123 offline
User avatar
Posts: 6584
Joined: May 12, 2013
Location: Dallas, TX

Re: Ir transmitter

Nice to hear.




Sent from my iPhone using Tapatalk

Posted on
Sat Apr 06, 2019 1:55 pm
RickStreet offline
Posts: 21
Joined: Jun 30, 2008

Re: Ir transmitter

For any iRed2 users out there.... An update was posted April 3, 2019. I downloaded it and all works great under Mac OS Mojave.

Rick

Who is online

Users browsing this forum: No registered users and 2 guests