Hi Gary
Downloaded the zip file from the GitHub website and still the same

SyntaxError: unexpected token: ':' theme.js:1:11
SyntaxError: unexpected token: ':' averages.js:1:11

Looking at averages.js starting at line 1 the next few lines are

/**
 * Theme distributed with Averages weewx extension
 * Based on Gray theme for Highcharts JS by Torstein Honsi
 **/
Highcharts.theme = {
    chart: {
        backgroundColor: 'rgb(208, 208, 208)',
        borderWidth: 1,
        borderColor: '#000000',
        borderRadius: 8,
        plotShadow: false,
        plotBorderWidth: 0,
    },
    colors: ["#B44242", "#4242B4", "#42B442", "#DF5353", "#aaeeee", 
"#ff0066", "#eeaaee",
        "#55BF3B", "#DF5353", "#7798BF", "#aaeeee"],
    labels: {
        style: {
            color: '#CCC'
        }
    },


On Wednesday, October 10, 2018 at 3:37:49 PM UTC+1, gjr80 wrote:
>
> Yep, this is not right:
>
> SyntaxError: unexpected token: ':' theme.js:1:11
> SyntaxError: unexpected token: ':' averages.js:1:11
>
> Have a look at averages.js on your web server, is it the same as 
> skins/HighchartsAverages/scripts/averages.js on your WeeWX machine and is 
> that the same as averages.js in the GitHub repo 
> <https://github.com/gjr80/weewx-averages/blob/master/skins/HighchartsAverages/scripts/averages.js>?
>  
> The error indicates a problem on lien 1 position 11 but my my reckoning 
> that is a comment.
>
> Gary
>
> On Wednesday, 10 October 2018 23:57:45 UTC+10, Phil Owers wrote:
>>
>> I used firefox. As a first attempt, is this what you mean
>>  [Show/hide message details.] TelemetryStopwatch: key 
>> "TELEMETRY_PENDING_LOAD_MS" was already initialized 
>> TelemetryStopwatch.jsm:352
>> [Show/hide message details.] TelemetryStopwatch: requesting elapsed time 
>> for nonexisting stopwatch. Histogram: "TELEMETRY_PENDING_LOAD_MS", key: 
>> "null"
>> TelemetryStopwatch.jsm:373
>> SyntaxError: unexpected token: ':' theme.js:1:11
>> SyntaxError: unexpected token: ':' averages.js:1:11
>> IndexedDB UnknownErr: ActorsParent.cpp:13930
>> [Show/hide message details.] SearchSuggestionController: Cannot stop 
>> fetching if remote results were not requested
>> SearchSuggestionController.jsm:169
>> Empty string passed to getElementById(). ee9f5ae1.js:3:2617
>> Use of Mutation Events is deprecated. Use MutationObserver instead. 
>> ee8d79e1.js:1:1409
>> SyntaxError: unexpected token: ':' theme.js:1:11
>> SyntaxError: unexpected token: ':' averages.js:1:11
>>
>> On Wednesday, October 10, 2018 at 11:53:35 AM UTC+1, Phil Owers wrote:
>>>
>>> Hi Guys
>>> Downloaded the weewx-averages extension a few days ago but cant get 
>>> anything on the averages.html
>>> I changed the report_timing to @daily to get it started and appears that 
>>> the averages.json file has data in it
>>>
>>> [{
>>> "_version": "averages.json.tmpl version 0.5.0",
>>> "temperatureplot": {"series":
>>> {"outTempMeanMinMax": {"name": "Temperature", "data": [[3.0, 7.2], [3.1, 
>>> 7.4], [4.0, 9.9], [6.2, 13.1], [9.0, 16.1], [11.9, 19.1], [14.1, 21.5], 
>>> [14.1, 21.2], [12.1, 18.6], [10.2, 15.2], [6.4, 10.7], [4.4, 8.5]]},
>>> "outTempMean": {"name": "Mean Temperature", "data": [5.1, 5.2, 7.0, 9.6, 
>>> 12.6, 15.5, 17.8, 17.6, 15.4, 12.7, 8.6, 6.5]},
>>> "outTempMax": {"name": "Maximum Temperature", "data": [15.2, 17.6, 21.8, 
>>> 28.3, 28.8, 32.3, 34.1, 30.9, 30.3, 28.2, 17.6, 15.6]},
>>> "outTempMin": {"name": "Minimum Temperature", "data": [-7.9, -5.4, -6.1, 
>>> -0.3, -1.5, 5.1, 9.2, 8.1, 5.3, 2.8, -0.1, -5.9]}},
>>> "yAxisLabel": {"text":  "(\u00B0 C)"
>>> },
>>> "yAxisUnits": {"text":  "\u00B0 C"
>>> }},
>>> "rainplot": {"series":
>>> {"rainAvg": {"name": "Rain", "data": [54.6, 46.0, 43.0, 36.5, 48.3, 
>>> 42.4, 44.4, 52.2, 42.9, 62.1, 65.3, 55.1]}},
>>> "yAxisLabel": {"text":  "(mm)"
>>> },
>>> "yAxisUnits": {"text":  "mm"
>>> }},
>>> "generated": "10 October 2018 00:00"
>>> }]
>>>
>>> but the averages.html is blank
>>>
>>> The averages.json file is in the HTML_ROOT/Jason folder and the 
>>> averages.html is in HTMT_ROOT folder
>>>
>>> The [[HighChartsAverages]] section in the weewx.conf is
>>>
>>> [[HighchartsAverages]]
>>>         report_timing = @daily
>>>         skin = HighchartsAverages
>>>         [[[Units]]]
>>>             [[[[StringFormats]]]]
>>>                 inch = %.2f
>>>                 mm = %.1f
>>>                 degree_F = %.1f
>>>                 cm = %.2f
>>>                 degree_C = %.1f
>>>             [[[[TimeFormats]]]]
>>>                 current = %-d %B %Y %H:%M
>>>             [[[[Groups]]]]
>>>                 group_temperature = degree_C
>>>                 group_rain = mm
>>>         [[[CopyGenerator]]]
>>>             copy_once = scripts/averages.js, scripts/theme.js, 
>>> averages.html
>>>         [[[Generators]]]
>>>             generator_list = weewx.cheetahgenerator.CheetahGenerator, 
>>> weewx.reportengine.CopyGe$
>>>
>>> I loaded the extension using wee_extension --install= 
>>>
>>> Weewx is version 3.8.2 and I have data in the sdb file back to 2010
>>>
>>> Am I being in to much of a rush or have I missed something
>>> Any help would be most welcome
>>> Thanks in advance
>>> Phil
>>>
>>

-- 
You received this message because you are subscribed to the Google Groups 
"weewx-user" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to