problem with gnuplot on m1 mac

Posted on
Fri Dec 09, 2022 8:07 am
richo offline
Posts: 158
Joined: Nov 25, 2014
Location: Pomorskie, Poland

problem with gnuplot on m1 mac

Hi,
After moving to a new mac Mini with M1 I have a problem with running Gnuplot from INDIGOplotD.
The script attached in the installation is not working as brew and gnuplot are now installed in other libraries then /usr/local/bin/ and that may be a reason.
I have manually installed brew and gnuplot using procedure from that page: https://mac.install.guide/homebrew/3.html

INDIGOplotD still doesn't discover gnuplot " INDIGOplotD Error gnuplot is not installed "

Here are the installation details:

==> Installing gnuplot
==> Pouring gnuplot--5.4.5.arm64_monterey.bottle.tar.gz
/opt/homebrew/Cellar/gnuplot/5.4.5: 46 files, 2.8MB
==> Running `brew cleanup gnuplot`...
Disable this behaviour by setting HOMEBREW_NO_INSTALL_CLEANUP.
Hide these hints with HOMEBREW_NO_ENV_HINTS (see `man brew`).
indigo@indigo ~ % gnuplot

G N U P L O T
Version 5.4 patchlevel 5 last modified 2022-09-28

Copyright (C) 1986-1993, 1998, 2004, 2007-2022
Thomas Williams, Colin Kelley and many others

gnuplot home: http://www.gnuplot.info
faq, bugs, etc: type "help FAQ"
immediate help: type "help" (plot window: hit 'h')

Terminal type is now 'qt'
gnuplot>

Ryszard

Posted on
Sat Dec 10, 2022 8:12 am
richo offline
Posts: 158
Joined: Nov 25, 2014
Location: Pomorskie, Poland

Re: problem with gnuplot on m1 mac

Looks like gnuplot is now installed in the following directory: /opt/homebrew/Cellar/gnuplot/5.4.5/bin/gnuplot

I have made a change in INDIGOplotD configuration but after a while it returns to original path:

INDIGOplotD setConfigParameters-- set indigoPNGdir to: /Users/indigo/Documents/INDIGOplotD/
INDIGOplotD setConfigParameters-- set gnuPlotBin to: /usr/local/bin/gnuplot
INDIGOplotD setConfigParameters-- set sqlDynamic to: batch
INDIGOplotD setConfigParameters-- set gnuORmat to: gnu
INDIGOplotD createPlotPNG-- PW-Wykres z-wave PING
INDIGOplotD Error GNUPLOT is not installed, can not use it

Don't know why?

Ryszard

Posted on
Sat Dec 10, 2022 8:27 am
richo offline
Posts: 158
Joined: Nov 25, 2014
Location: Pomorskie, Poland

Re: problem with gnuplot on m1 mac

Ups I have found the problem :oops:

I was using a python script where I have included old directory:

Code: Select all
plug = indigo.server.getPlugin("com.karlwachs.INDIGOplotD")
if not plug.isEnabled(): return   #### INDIGOplotD must be enabled, otherwise nothing here works

#########
######### section to change general configuration parameters these are YOUR current config paramaters
#########  comment out the parameters you dont like to change with a # in the begiing of the line
#########

ppp ={
     "debugLevel":              u'0'                  ### 0...255
    ,"gnuPlotBin":               u'/usr/local/bin/gnuplot' ### path to GNUplot binary  could be eg /usr/local/bin/gnuplot
    ,"gnuORmat":                 u'gnu'                    ### mat or gnu
    ,"sqlDynamic":               u'batch'                   ###  batch or batch2Days or None
    ,"indigoPNGdir":             u'/Users/indigo/Documents/INDIGOplotD/'                   ### psetConfigParametersath to plotdirectory 
    ,"logLevel":                 u'1'}
plug.executeAction("setConfigParameters"      , props =ppp)
#########
#########------------------------------------------------------------------------------------------------------------------------
#########
######### section with examples how to create/delete devices-states-measurement  to start/stop data tracking for use in plots/lines
#########       this is the same function as the device/state/measurement selection in the configmenue
#########


plug.executeAction("createPlotPNG"       , props ={"deviceNameOfPlot": u'PW-Wykres z-wave PING'})  ### call to immediately create the PNG file, no 5 minute waiting for next cycle

Ryszard

Page 1 of 1

Who is online

Users browsing this forum: No registered users and 3 guests

cron