hydrashare / hydra Goto Github PK
View Code? Open in Web Editor NEWHydra is a web platform to share your example files from Grasshopper and Dynamo
Home Page: http://hydrashare.github.io/hydra/
License: MIT License
Hydra is a web platform to share your example files from Grasshopper and Dynamo
Home Page: http://hydrashare.github.io/hydra/
License: MIT License
@chriswmackey here are some thought about REASME.md
First of all I think we can merge README.md and changelog.MD into a single file > README.md and use mark down to separate them.
We can/should also add tags and dependencies inside README.md. It will make it google searchable and human-readable on the github page.
One more enhancement is to add a link at the end of the README.me to visualize it on Hydra. To generate the link you will need user's github account that can be an input for the component then it will look like:
http://hydrashare.github.io/hydra/viewer?owner=*githuboccountname&description=*projectname
For example:
http://hydrashare.github.io/hydra/viewer?owner=ayezioro&description=Bounce_Out
Finally if we can add a link to thumbnail image so it will be rendered once you open the github page it would be very helpful. We will also need the user account name in github to include the link inside the file.
The file would look like
Automate the process of creating a topic for each hydra on discourse so people can ask their questions and get answers. We don't really check the comments here.
Add Dynamo instructions/installation guide.
If user apply a filter, change the sorting and then remove the filter sorting doesn't work right!
@alfarok is possible to link Dynamo Customizer to Hydra? We can add a new key to input.json where user can share the link and then we can embed the page in Hydra. That will be pretty cool IMO.
I have noticed that various examples are missing when we refresh the repo data. I believe the data is refreshed a couple of times per hour but it appears the data that comes back is not consistent as some of my examples are randomly hidden hour to hour. It appears the bug is that not all folders in each fork are properly pulled and posted.
@mdahlhausen, @chriswmackey and @alfarok and anybody else who is reading this. Here is a proposal to standardize Hydra schema before we get more users. The current schema is software specific and is not generic and extendable. To avoid ending up with slightly different schema for different platforms I'm proposing the structure below.
The main changed are:
{
"file" : /*full name to the file that will be downloaded on click on download button.
the file should be located in root.*/
"myporject.zip",
"thumbnail" : /* full name to an image which is located in root */
"thumbnail.jpg",
"images" : [ /*
List of images as objects: {image full name : optional description}
First image will be loaded on page load by default. All the images should be
located in the root folder
*/
{"image1.jpg" : "Grasshopper definition"},
{"image2.gif": "Animated Rhino Scene"},
{"image3.png": "Dynamo definition"},
{"Image4.tiff": "", ...}
],
"videos": { /*
links to videos on youtube, Vimeo, etc.: optional description
*/
{"https://www.youtube.com/watch?v=9_u0dnyq2QI", "sunpath tutorial 1"}, ...
},
"tags": [ /* list of tags as string */
"EnergyPlus", "Honeybee", "Energy", ...
],
"components": { /* component/node name : number of occurrence in the file */
"Honeybee_Set EnergyPlus Zone Loads": 1,
"Honeybee_Construct Energy Balance": 1, ...
},
"dependencies": [ /* list of plugins used in the definition */
"Human", "Ladybug", "Elk", "Mantis Shrimp", ...
]
}
A Hydra folder includes:
apologies if this is covered in another issue post.
when i navigate to http://hydrashare.github.io/hydra/ the page fully loads and nothing comes up.
there's just a bit of text at the top that says "Loading; one moment please" that never loads.
Currently Dynamo does not have a built in method for capturing the 3D preview (geometry), you can only capture the canvas. There should be a way to modify the current method to capture the geometry as well. This could be a pretty interesting node in itself for animations and such.
Otherwise we will get so many empty Rhino view images uploaded!
@alfarok here is the new download link: https://github.com/HydraShare/hydra/blob/installation/Install/Hydra_ExportFile.ghuser?raw=true
window.event doesn't exist in FireFox
Hi guys thanks for all the work on the amazing tools.
I wanted to report a bug I encountered in Hydra's writeMetadataFile
function, I guess the problem was something related to the encodings of ascii characters or something like that.
This function works:
def writeMetadataFile(fileName, repoTargetFolder, metaDataDict):
jsonFilePath = repoTargetFolder + '\\' + 'input.json'
try:
with open(jsonFilePath, "w") as outfile:
json.dump(metaDataDict, outfile, ensure_ascii=False)
except:
print("Oops!",sys.exc_info()[0],"occured.")
return jsonFilePath
I wish to fork and tinker with Hydra. Are all the files needed to build and run a Hydrashare website already on this repository?
Comment form @mdahlhausen
@mostaphaRoudsari disqus has a post on adding comment counts to a webpage.
Is it possible to remove or update the uploaded files ?
Now that Hydra is supporting Dynamo and Grashopper I was wondering how we want to organize the overlap. Here are a few issues that come to mind.
-Separating installation files/code on multiple GitHub pages
-Naming conventions (I had to use some of the Grasshopper conventions to have things load properly to the web)
-Old version of Hydra error message (all Dynamo files will show this)
I am sure there are a lot more topics but I figured we could just brainstorm a few ideas of the approach we might take.
Hi,
I've found at least three examples where the GH definition is not found. It happens that those 2 are coming from Mostapha. So maybe some changes happen and they GH is not uploaded anymore.
So FYI in case this is true or sorry if it isn't.
The examples are the Room Orientation Optimization, Shadow Range Study and Remove Glazing Honeybee example.
Thanks,
-A.
@mostaphaRoudsari do you think we should add comments to each of the examples? It'll be easy to add a Disqus comment chain to each example.
We can use github's versions for the zip file as the main driver of the versions. The version input by user can move to README.md file.
In case user hasn't provide the template as a tag the component/node needs to add it to the end of the list as default.
Currently if someone forks out with a different name for the repository the connection will be broken. This is an easy but critical fix.
Based on this discussion it should not.
In that way the page can load the first portion of the available files onload and keep fetching on scroll down. The current approach won't be functional once we have 1000s of files.
I'm having some browser issues (Firefox, Chrome and MS Edge) with some of the u[ploaded files: Armature for Maximum Solar, Armature for Energy-Positive Building Experiment and XmasQMEF. The image crashes the page. The worst is in Firefox, where the browser turns black (all of it).
-A.
Hi, would you like to be an admin at dynamoworks and post about Hydra nodes for Dynamo when they become available. If you would like, send me your email address and I will invite you.
Ideally, we could find a way to integrate graph sharing, with wiki, with packages, with node based content like on DynamoWorks.
I know that we have the search feature for this but putting a quick access button to this page will make a lot of users conscious of their profile ans image to our larger budding community. It will also remind them which files they are responsible for to that they maintain them better.
A few hours ago, all of my recent THERM example files were appearing on the Hydra main display pageand now they are all gone:
https://hydrashare.github.io/hydra/index.html
The examples are still on my fork and they can still appear in their own viewer pages as you can see this THERM one here:
http://hydrashare.github.io/hydra/viewer?owner=chriswmackey&fork=hydra_2&id=Analyze_THERM_Results&slide=0&scale=1&offset=0,0
So the issue is only with the main page. Specifically, the request to the google macro is not working correctly:
https://script.google.com/macros/s/AKfycbxiRnl-119Qy-Ygchrjp5OiMelYUJCZ-ZHjpwKTm6dtaYCOZ9IZ/exec
https://github.com/HydraShare/hydra/blob/gh-pages/lib/hydra.js#L31-L35
Currently Dynamo does not have a built in method for capturing the 3D preview (geometry), you can only capture the canvas. There should be a way to modify the current method to capture the geometry as well. This could be a pretty interesting node in itself for animations and such.
This can be/should be included in #2
Not critical but definitely helpful!
Collaborate to finish the Dynamo Component
mjkkirschner provided this sample that illustrates saving the graph on button press which could be made simpler and hook up the callback that saves the graph to the evaluation event on the node so it will just save the file on every run of the graph etc..
Which should be updated by change of the slider image. In that way people can share the page referring to a specific image. It's not possible right now
I have noticed this issue for quite some time that the main hydrashare display page will include duplicate files at the bottom of the page and other example files that should be on this page do not display:
For example, I cannot find my Urban Weather Generator file on the main page right now because of this.
I have noticed that the missing files change with time and I guess this main page is just failing to find all of the files that it should. I just wanted to put this up here in case anyone had any ideas about it. Maybe we should try refreshing this page every 30 minutes instead of 15 minutes to see if this has any effect.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.