Need Help on completing the Weather/Singletracks/Trailforks Data - almost done!

Patrick

Overthinking the draft from the basement already
Staff member
Hey all - as announced, and part of a larger plan, we are going to have Trailforks, Weather, and Singletrack.com data displayed in a sidebar of the Trail Talk section of mtbNJ.com.
You can see it in the 6MR and Allaire forums right now.

The focus is on the trailforks.com data.
Singletracks.com data will be included for rain.
We'll also include current weather, with a click-through to the forecast.

First lets get it displayed. (this is where you help!)

I need a person for each park - to collect configuration data.
Thanks for taking this on - you don't need to do all the pieces at once.
Post you are taking on a park, so we don't duplicate effort.
Instructions are below the spreadsheet.

@Bleeder will start identifying official reporters to TF, to clean up the displayed data.
As noted, this is part of a bigger effort to Know before you go, and ride/report.

Let me know if there are any questions.
Thanks!
Pat

Summary of what you are collecting..
1. the node number of the park on mtbnj (it is in the URL) figured out a quick way to do this
2. the weatherwidget town id (enter town, generate the widget code, lift out the id)
3. the trailforks data-rid (go to park summary page, generate widget code, lift out the data-rid)
4. the singletracks id (go to the widget generator, enter park, lift out the id)

Please cut/paste, do not use screen shots.
Instructions for each step are below the table.

Not everyone is comfortable looking at the computer code generated - just think of it as more of a word search!



ParkWho got/getting datanodeweatherTFSingletracks
North Jersey Forum
xxx​
Allamuchy: Deer Park Forum@iman2913540d92n74d81/alamuchy968
Allamuchy: North Forum@iman293540d92n74d81/allamuchy-township/3628914
Allamuchy: Stephen's State Park Forum@Patrick13640d85n74d83/hackettstown76437825
Black River Wildlife Management Area Forum@iman295740d78n74d70/chester7862
Blauvelt Forum175
Columbia Trail Forum@68nova20010840d67n74d90/high-bridge/720868476
Mountain Creek Bike Park Forum@Patrick4341d21n74d61/sussex4138558
Dickerson Mine Preserve Forum@iman2914740d85n74d57/randolph36267980
High Mountain Park Preserve Forum@Paul H13740d93n74d28/wayne/150206383
High Point State Park Forum56
Jungle Habitat Forum@serviceguy10641d10n74d39/0748036363214
Kittatinny Valley State Park Forum41
Lewis Morris Park Forum@68nova2001040d80n74d48/morristown36244644
Mahlon Dickerson Reservation Forum9
Patriots Path Forum@68nova2001740d80n74d48/morristown
Ramapo Mountain State Forest Forum@serviceguy4441d11n74d25/ringwood36347828
Ringwood State Park Forum@serviceguy4241d11n74d25/ringwood7885
Sterling Forest Forum@Patrick17443d33n76d64/sterling15807
Stokes State Forest Forum50
Tourne County Park Forum@Patrick840d93n74d43/boonton-township/36303710
Wawayanda State Park Forum@serviceguy2641d17n74d37/074213637
Wildcat Ridge Wildlife Management Area Forum@68nova20011040d90n74d51/rockaway139487930
Central Jersey Forum
xxx​
Baldpate Mtn: Ted Stiles Prserve Forum138
Capoolong Creek Wildlife Management Area Forum109
Cheesequake State Park Forum59
Chimney Rock / Washington Valley Park Forum@Norm6040d59n74d60/bridgewater-township11338850
Hartshorne and Huber Woods Parks Forum@iman293240d40n73d99/highlands12118842
? Nassau Trail Forum@Robin15740d67n74d90/high-bridge238947824
Mercer County Park Forum@Patrick3140d30n74d62/west-windsor-township36181632
Round Valley State Park Forum@jklett3340d64n74d84/lebanon238932593
Rutgers Ecological Preserve Forum@jimvreeland1140d55n74d46/piscataway-township1994012033
? Six Mile Run Reservoir Site Forum@Patrick25donedonedone
Sourland Mountain Preserve Forum@jklett4040d51n74d65/08844144291478
Tatum County Park Forum58
Thompson Park Forum47
Voorhees State Park Forum51
Water Company Trails Forum@Robin16140d37n74d94/lambertville709811161
South Jersey Forum
xxx​
Allaire State Park Forum@Patrick49
Assunpink Wildlife Management Area Forum@iman295540d20n74d43/millstone
Belleplain State Forest Forum@slingblade_uhhuh15239d24n74d82/woodbine79303076
Black Run Preserve Forum@Mahnken14939d85n74d89/evesham-township244897702
Ceres Park Forum@Mahnken8239d73n75d13/pitman3167
Clayton Park Forum@slingblade_uhhuh4540d18n74d58/allentown8057841
Egg Harbor@slingblade_uhhuh17739d38n74d62/egg-harbor-township5993
Estell Manor Park Forum@slingblade_uhhuh5339d41n74d74/estell-mano3612375
GCC/CCC Forum@Mahnken15039d72n74d97/sicklerville65212142
Kresson Trail Forum@Mahnken15139d93n75d02/cherry-hill257196007
Maurice river@slingblade_uhhuh17839d40n75d04/millville263249302
Parvin State Park Forum52
Port Republic Forum16
Seaview Estates Trails Forum@slingblade_uhhuh15439d49n74d56/galloway63985964
Shark River Park Forum46
Turkey Swamp Park Forum48
Wharton State Forest Forum@slingblade_uhhuh14539d64n74d80/hammonton36143077
Wells Mills County Park Forum@slingblade_uhhuh5439d83n74d16/forked-river8444

Node number -

Here is what i need you to do - Go to the forum title for the park and get the node number.
This is in the URL - so i navigate to the Tourne, and grab node-8




Weather Town ID

Then i go to http://weatherwidget.io and generate the widget for Boonton township - inside the generated code,
i grab the location identifier by typing in the town and pressing the Get Code button. See it is highlighted in the pop-up
40d93n74d43/boonton-township/

1583807354588.png

Trailforks data-rid

Then you go to trailforks status page - here is the one for the tourne.


Under the page number list, you'll see 'embed trail status widget' link -

1583807497403.png

Press that, and scroll down to Get the Code - and look for the data-rid - in this case 3630 - i'll need that.

1583807638295.png

singletracks ID

Go directly to their widgets page https://www.singletracks.com/widget.php?item_hash=i:1:558 and enter the park in the trail box - it should find it.
I need the 'id=' out of the code generated box - note that they have an issue if you go to another park.
1478 for the Sourland Mountain Preserve

1583848270497.png
 

Attachments

  • 1583807244596.png
    1583807244596.png
    52.5 KB · Views: 70
  • 1583807833038.png
    1583807833038.png
    129.5 KB · Views: 65
Last edited:

serviceguy

Well-Known Member
Hey all - as announced, and part of a larger plan, we are going to have
a sidebar displayed when looking for conditions at each park. I'm going to include singletracks data for
rain, but we will be focusing on improving the trailforks data.
First lets get it displayed.

I need a person for each park - this is just to get it into the system - reporting on the trails will be another effort to id people.
Thanks for taking this on - you don't need to do all the pieces at once. Report you are taking on a park, so i we don't duplicate.

@Bleeder will start identifying official reporters to TF, and we'll try to get rid of duplicates. As noted, this is part of a bigger
effort to Know before you go, and ride/report. @Robin indicated her preferred way of reporting to TF. Once the data is up
on the here, it will also be easy to click through to TF from the parks pages.

Let me know if there are any questions.
Thanks!
Pat



ParkWho got/getting datanodeweatherTFSingletracks
North Jersey Forum
xxx​
Allamuchy: Deer Park Forum
Allamuchy: North Forum
Allamuchy: Stephen's State Park Forum
Black River Wildlife Management Area Forum
Blauvelt Forum
Columbia Trail Forum
Mountain Creek Bike Park Forum
Dickerson Mine Preserve Forum
High Mountain Park Preserve Forum
High Point State Park Forum
Jungle Habitat Forum@serviceguy
Kittatinny Valley State Park Forum
Lewis Morris Park Forum
Mahlon Dickerson Reservation Forum
Patriots Path Forum
Ramapo Mountain State Forest Forum
Rifle Camp Park Forum
Ringwood State Park Forum@serviceguy
Sterling Forest Forum
Stokes State Forest Forum
Tourne County Park Forum@Patrick840d93n74d43/boonton-township/3630i:1:3710
Wawayanda State Park Forum@serviceguy
Wildcat Ridge Wildlife Management Area Forum
Central Jersey Forum
xxx​
Baldpate Mtn: Ted Stiles Prserve Forum
Capoolong Creek Wildlife Management Area Forum
Cheesequake State Park Forum
Chimney Rock / Washington Valley Park Forum
Hartshorne and Huber Woods Parks Forum
? Nassau Trail Forum
Mercer County Park Forum
Round Valley State Park Forum
Rutgers Ecological Preserve Forum
? Six Mile Run Reservoir Site Forum@Patrick
Sourland Mountain Preserve Forum
Tatum County Park Forum
Thompson Park Forum
Voorhees State Park Forum
Water Company Trails Forum
South Jersey Forum
xxx​
Allaire State Park Forum@Patrick
Assunpink Wildlife Management Area Forum
Belleplain State Forest Forum
Black Run Preserve Forum
Ceres Park Forum
Clayton Park Forum
Estell Manor Park Forum
GCC/CCC Forum
Kresson Trail Forum
Parvin State Park Forum
Port Republic Forum
Seaview Estates Trails Forum
Shark River Park Forum
Turkey Swamp Park Forum
Wharton State Forest Forum
Wells Mills County Park Forum

Here is what i need you to do - Go to the forum title for the park and get the node number.
This is in the URL - so i navigate to the Tourne, and grab node-8

View attachment 121312

Then i go to http://weatherwidget.io and generate the widget for Boonton township - inside the generated code,
i grab the location identifier by typing in the town and pressing the Get Code button. See it is highlighted in the pop-up
40d93n74d43/boonton-township/

View attachment 121313

Then you go to trailforks status page - here is the one for the tourne.


Under the page number list, you'll see 'embed trail status widget' link -

View attachment 121314

Press that, and scroll down to Get the Code - and look for the data-rid - in this case 3630 - i'll need that.

View attachment 121315

For singletracks
Go directly to their widgets page https://www.singletracks.com/widget.php?item_hash=i:1:558 and enter the park in the trail box - it should find it.
I need the hash= out of the code generated box - note that they have an issue if you go to another park.
i:1:3710 in this case.

View attachment 121316
Do you want the info for each park in a separate reply to your post or there’s a spreadsheet somewhere?
 

Patrick

Overthinking the draft from the basement already
Staff member
Do you want the info for each park in a separate reply to your post or there’s a spreadsheet somewhere?

Just post up what ya have in this thread, and i'll move it to the first post - you already have the TF info for those parks.
Thanks
 

68nova200

Well-Known Member
I don't have much going on at work today. I'll start with wildcat and see if I have time to add more.

node 110
weather town id 40d90n74d51/rockaway/
trailforks status id 13948
singletracks <iframe src="https://www.singletracks.com/ajax/trail_widget.php?id=7930&width=600" style='height: 412px; width: 600px; border: none; overflow: hidden;' scrolling='no'></iframe><div style='overflow: hidden; white-space: nowrap; width: 600px;' align='right'><a href='bike-trails/wildcat-ridge.html'>Wildcat Ridge</a> on <a href='https://www.singletracks.com/'>Singletracks.com</a></div>

is the info you need in that code? i dont see the hash you are looking for on the single tracks stuff
@Patrick
 
Last edited:

Patrick

Overthinking the draft from the basement already
Staff member
wow @Patrick this is some undertaking! thanks for all of the effort! i could volunteer for daily update on the Henry Hudson Greenway! longer term, i hope that we have enough trails in our local Edison woods to need a daily update tool

thanks - i just copy/paste/modify code. the real work is being spearheaded by @Bleeder/JORBA -
After the display part is done, i'll look at having some automated indicator appear in the titles (like the red flag in 6MR right now - which was done manually)
Then perhaps a summary or ticker at a higher level.

Not sure the greenway falls under JORBAs jurisdiction, but probably would be a good idea to mark any closures on TF.
 

iman29

Well-Known Member
If I did this right here's the DM data, not sure I am the best to keep TF updated long term but hopefully this helps in the efforts a little:

Forum ID

Weather Widget
en/40d85n74d57/randolph/

TrailForks ID

singletracks thingy ( I dont think I did this correctly?)

<iframe src="https://www.singletracks.com/ajax/trail_widget.php?id=7980&width=600" style='height: 412px; width: 600px; border: none; overflow: hidden;' scrolling='no'></iframe><div style='overflow: hidden; white-space: nowrap; width: 600px;' align='right'><a href='bike-trails/dickerson-mine-preserve.html'>Dickerson Mine Preserve</a> on <a href='https://www.singletracks.com/'>Singletracks.com</a></div>
 

Patrick

Overthinking the draft from the basement already
Staff member
@iman29 - awesome - i can grab the node from the URL, the weather works, the rid for TF is in the URL there,

and i need to correct the instructions on singletracks - i actually need the 'id' which is 7980 here.

click through, i put it up already.

 

Robin

Well-Known Member
Nassau Trail
1. the node number of the park on mtbnj (it is in the URL)
- https://www.mtbnj.com/forum/forums/🚩-nassau-trail.157/
2. the weatherwidget town id (enter town, generate the widget code, lift out the id) - it's blocked at school - will come back to
3. the trailforks data-rid (go to park summary page, generate widget code, lift out the data-rid) -
<!-- TRAILFORKS WIDGET START -->
<div class="TrailforksTrailStatus" data-w="900px" data-h="300px" data-rid="23894" data-activitytype="1" data-displaytype="table" data-unsanctioned="0" data-officialonly="0" data-photos="0"></div>
powered by <a href="https://www.trailforks.com/">Trailforks.com</a>

<script type="application/javascript" src="https://es.pinkbike.org/326/sprt/j/trailforks/iframeResizer.min.js"></script>
<script type="text/javascript">
var script = document.createElement("script"); script.setAttribute("src", "https://es.pinkbike.org/ttl-86400/sprt/j/trailforks/widget.js"); document.getElementsByTagName("head")[0].appendChild(script); var widgetCheck = false;
</script>
<!-- TRAILFORKS WIDGET END -->
4. the singletracks hash (go to the widget generator, enter park, lift out the hash) -
<iframe src="https://www.singletracks.com/ajax/trail_widget.php?id=7824&width=600" style='height: 412px; width: 600px; border: none; overflow: hidden;' scrolling='no'></iframe><div style='overflow: hidden; white-space: nowrap; width: 600px;' align='right'><a href='bike-trails/nassau-trails.html'>Nassau Trails</a> on <a href='https://www.singletracks.com/'>Singletracks.com</a></div>

Water Co.
1. the node number of the park on mtbnj (it is in the URL)
-https://www.mtbnj.com/forum/forums/Water-Company/
2. the weatherwidget town id (enter town, generate the widget code, lift out the id) - it's blocked at school - will come back to
3. the trailforks data-rid (go to park summary page, generate widget code, lift out the data-rid) -
<!-- TRAILFORKS WIDGET START -->
<div class="TrailforksTrailStatus" data-w="900px" data-h="300px" data-rid="7089" data-activitytype="1" data-displaytype="table" data-unsanctioned="0" data-officialonly="0" data-photos="0"></div>
powered by <a href="https://www.trailforks.com/">Trailforks.com</a>

<script type="application/javascript" src="https://es.pinkbike.org/326/sprt/j/trailforks/iframeResizer.min.js"></script>
<script type="text/javascript">
var script = document.createElement("script"); script.setAttribute("src", "https://es.pinkbike.org/ttl-86400/sprt/j/trailforks/widget.js"); document.getElementsByTagName("head")[0].appendChild(script); var widgetCheck = false;
</script>
<!-- TRAILFORKS WIDGET END -->
4. the singletracks hash (go to the widget generator, enter park, lift out the hash) -
<iframe src="https://www.singletracks.com/ajax/trail_widget.php?id=11161&width=600" style='height: 412px; width: 600px; border: none; overflow: hidden;' scrolling='no'></iframe><div style='overflow: hidden; white-space: nowrap; width: 600px;' align='right'><a href='bike-trails/water-company.html'>Water Company</a> on <a href='https://www.singletracks.com/'>Singletracks.com</a></div>
 

iman29

Well-Known Member
@iman29 - awesome - i can grab the node from the URL, the weather works, the rid for TF is in the URL there,

and i need to correct the instructions on singletracks - i actually need the 'id' which is 7980 here.

click through, i put it up already.


Cool. I can also grab data for certain parks for this initial step if you need more help like that (and I did it right). Besides I was about to go out and ride but now it started raining by me so looks like I missed my ride window for today anyway.
 

Patrick

Overthinking the draft from the basement already
Staff member
Cool. I can also grab data for certain parks for this initial step if you need more help like that (and I did it right). Besides I was about to go out and ride but now it started raining by me so looks like I missed my ride window for today anyway.

Sure! will take as many as you want to do!
 

iman29

Well-Known Member
Sure! will take as many as you want to do!

OK I will just start at the top and post as I go, while making sure no one else is doing them.



Allamuchy (State Park North)

weather ID

<a class="weatherwidget-io" href="https://forecast7.com/en/40d92n74d81/allamuchy-township/" data-label_1="ALLAMUCHY TOWNSHIP" data-label_2="WEATHER" data-theme="original" >ALLAMUCHY TOWNSHIP WEATHER</a>
<script>
!function(d,s,id){var js,fjs=d.getElementsByTagName(s)[0];if(!d.getElementById(id)){js=d.createElement(s);js.id=id;js.src='https://weatherwidget.io/js/widget.min.js';fjs.parentNode.insertBefore(js,fjs);}}(document,'script','weatherwidget-io-js');
</script>

Trailforks:
<!-- TRAILFORKS WIDGET START -->
<div class="TrailforksTrailStatus" data-w="900px" data-h="300px" data-rid="3628" data-activitytype="1" data-displaytype="table" data-unsanctioned="0" data-officialonly="0" data-photos="0"></div>
powered by <a href="https://www.trailforks.com/">Trailforks.com</a>

<script type="application/javascript" src="https://es.pinkbike.org/326/sprt/j/trailforks/iframeResizer.min.js"></script>
<script type="text/javascript">
var script = document.createElement("script"); script.setAttribute("src", "https://es.pinkbike.org/ttl-86400/sprt/j/trailforks/widget.js"); document.getElementsByTagName("head")[0].appendChild(script); var widgetCheck = false;
</script>
<!-- TRAILFORKS WIDGET END -->

Singletracks:
<iframe src="https://www.singletracks.com/ajax/trail_widget.php?id=914&width=600" style='height: 412px; width: 600px; border: none; overflow: hidden;' scrolling='no'></iframe><div style='overflow: hidden; white-space: nowrap; width: 600px;' align='right'><a href='bike-trails/allamuchy-state-park-north.html'>Allamuchy State Park-North</a> on <a href='https://www.singletracks.com/'>Singletracks.com</a></div>
 
Top Bottom